potinho
Advanced OT User
Hi everybody,
I have a script to add a storage value to a player when he use a item:
I add storage value (30009) in Action ID teleport, but all players can jump in, how can i fix that?
I have a script to add a storage value to a player when he use a item:
LUA:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2239 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens, voce se tornou um membro VIP do ExtremeOT!")
setPlayerStorageValue(cid, 30009, 1)
doPlayerAddPremiumDays(cid, 7)
doRemoveItem(item.uid, 1)
end
return true
end
I add storage value (30009) in Action ID teleport, but all players can jump in, how can i fix that?
