• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Magic Effect

Ldrozd

Piszę skrypty w zeszycie.
Joined
Dec 13, 2008
Messages
430
Reaction score
2
Location
Guess where!
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 :)
 
os.clock check current time, add to storage value or so, when they say that again, check the current time and compare to the storage value, if is +1 min, then do the stuff, and replace the storage with the current time.

=]
 
Back
Top