masz trainer komenda i do talkactions.xmllocal exh = 5 -- Ile sekund exhaused
local storage = 1414
function onSay(cid, words, param, channel)
if (getPlayerStorageValue(cid,storage)<= os.time()) and doPlayerRemoveMoney(cid, 50) == true then
local summon = doSummonCreature("Trainer",getPlayerPosition(cid))
doChallengeCreature(cid, summon)
doChallengeCreature(summon, cid)
setPlayerStorageValue(cid,storage,os.time()+exh)
else
doPlayerSendCancel(cid, "Sorry, You are exhaused.")
end
return TRUE
end
<talkaction words="!trainer" event="script" value="trainer.lua"/>
War mi nie działa za huntersy dzięki :** i nie do końca mi chodziło o takie trainy ale i tak dzięki :*
masz trainer komenda i do talkactions.xml