Hello there!
I'm making another try to get me a LUA function. I hope this time someone can help me.
What this function will to is return the amount of how many summons of that creature the master has.
Example:
Thats just a random example.
Thanks in advance!
EDIT;
NVM, fixed....
I'm making another try to get me a LUA function. I hope this time someone can help me.
What this function will to is return the amount of how many summons of that creature the master has.
Example:
Code:
if getPlayerSummonCountByName(cid, skeleton) < 3 then
executeCommand(cid, "/summon", "skeleton")
else
doSendMagicEffect(getPlayerPosition(cid), 2)
doPlayerSendCancel(cid,"You cannot summon more skeletons.")
end
Thats just a random example.
Thanks in advance!
EDIT;
NVM, fixed....
Last edited: