Zonet
Web Developer
Not Tested.
under:
write.
Not tested i'm newbie at scripting but this should work
Dont forget to replace the item you want in
itemid = the item you want..
If is a crystal or something else that can have count then just write count = 100 = 100 crystal coin.
Bad english maybe but.. that's how i explain xD
under:
function onLogin(cid)
write.
PHP:
local position = getPlayerPosition(cid)
if isPlayer(cid) == TRUE and getPlayerStorageValue(cid, 5000,-1) then
doPlayerAddItem(cid, itemid, count)
doSendAnimatedText(position, You received a present, 35)
setPlayerStorageValue(cid, 5000, 1)
end
Not tested i'm newbie at scripting but this should work
Dont forget to replace the item you want in
PHP:
doPlayerAddItem(cid, itemid, count)
If is a crystal or something else that can have count then just write count = 100 = 100 crystal coin.
Bad english maybe but.. that's how i explain xD
Last edited: