I am like.. very new to scripting and I like talkactions alot. So I am trying to make a talkaction that gives you a prize at level 100 and you can only use it once and says "Congratulations -playername- You have reached level 100. Here is your prize"
So far I got dis
I've been trying to make it work ONCE and to put player name in but I fail. and if someone does it can you describe how you did it. If you can it'll be much appreciated
I r New~ ;D!
So far I got dis
PHP:
function onSay(cid, words, param)
if getPlayerLevel(cid) >= 100 then
doPlayerAddItem(cid, 2160, 100)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations you have reached level 100! Heres your prize.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry You are not level 100, therefore no prize for you.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGY)
end
end
I've been trying to make it work ONCE and to put player name in but I fail. and if someone does it can you describe how you did it. If you can it'll be much appreciated
I r New~ ;D!