Dragonz1469 Posted December 21, 2009 Author Share Posted December 21, 2009 I'm not exactly sure how to make commands, like I would like to make commands for admins to be able to spawn items, if that is possible, how do I do that? Link to comment Share on other sites More sharing options...
teh jimpie Posted December 21, 2009 Share Posted December 21, 2009 put this under commands in your main.ess/main.text or if youre using eclipse stable 1.1 command.ess``` case "/spawn" itemz = TextSay(1) itemz2 = TextSay(2) If GetPlayerAccess(Index) = 5 Then Call SpawnItemOnMap(GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index), itemz, itemz2, -1) Else Call playermsg(index, "You can't use this script", YELLOW) end if exit sub```use as: /spawn Link to comment Share on other sites More sharing options...
Dragonz1469 Posted December 22, 2009 Author Share Posted December 22, 2009 Dude thanks man.Although I would prefer if the item spawned in the inventory not on the map? Link to comment Share on other sites More sharing options...
Lam3r Posted December 22, 2009 Share Posted December 22, 2009 You will need [Godlord's Inventory](http://www.touchofdeathforums.com/smf/index.php/topic,51481.0.html) and [Godlord's Main](http://www.touchofdeathforums.com/smf/index.php/topic,51143.0.html)``` Case "/spawn" itemz = TextSay(1) itemz2 = TextSay(2) If GetPlayerAccess(Index) = 5 Then If GetFreeSlots(Index) >= 1 Then Call GiveItem(Index, itemz, itemz2) Else Call PlayerMsg(index, "You can't use this script or inventory is full.", YELLOW) End If End If Exit Sub```K now call it like this: /spawn Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 22, 2009 Share Posted December 22, 2009 ``` Case "/spawn" itemz = TextSay(1) itemz2 = TextSay(2) If GetPlayerAccess(Index) = 5 Then If GetFreeSlots(Index) >= 1 Then Call GiveItem(Index, itemz, itemz2) Else Call PlayerMsg(index, "You can't use this script or inventory is full.", YELLOW) End If End If Exit Sub```Give_Item is Baron's command (or so I've heard) Godlord's is GiveItem. Link to comment Share on other sites More sharing options...
Lam3r Posted December 23, 2009 Share Posted December 23, 2009 k fixed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now