Ldrozd
Piszę skrypty w zeszycie.
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2270, 100)
doPlayerSendTextMessage(cid, 19,"Kupiles manarune, kosztowalo cie to 1cc.")
doSendMagicEffect(getPlayerPosition(cid), 19)
else
doPlayerSendCancel(cid, "Sorry, Nie masz tyle kasy. Manaruna kosztuje 1cc.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
How to make this script to be used once a minute and (if I will make magiceffect constance) only when, impossible to use it twice when is in using.
Need functions. Plx help.
Remember I need name of fuctions and simple. I dont want yuo to make that script