• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

KickItem?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
can some make a actionID (Like this if you press on a item whit That actionID you get kicked)
 
The item will disappear on use:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 666 then
doRemoveCreature(cid)
doTransformItem(item.uid, 0)
end
return TRUE
end

And this will not disappear:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 666 then
doRemoveCreature(cid)
end
return TRUE
end

Don't forget to rep me :P

Code to set an action id to an item:
LUA:
KICKITEM = doPlayerAddItem(cid, 666)
doSetItemActionId(KICKITEM, 666)
(666 -change that to any action id/item id)
 
Back
Top