DenZ
Zasłużony
- Joined
- Feb 23, 2011
- Messages
- 868
- Reaction score
- 30
- Age
- 28
Oddaje w wasze r?czki do?? prosty skrypt na super promocje.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPromotionLevel(cid) == 1 then
doPlayerSetPromotionLevel(cid, 2)
doSendMagicEffect(toPosition, CONST_ME_MAGIC_RED)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Now you are Super"..getPlayerVocationName(cid)..".");
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
end
end