function onCastSpell(cid, var)
local playerpos = getPlayerPosition(cid)
local health = getCreatureHealth(cid)
local maxhealth = getCreatureMaxHealth(cid)
local MaximoSummon = 2
local summons = getCreatureSummons(cid)
if(table.maxn(summons) < MaximoSummon) then
local clone = doSummonCreature("Scyther", getCreaturePosition(cid))
doConvinceCreature(cid, clone)
setCreatureMaxHealth(clone, maxhealth)
doCreatureAddHealth(clone, health)
doCreatureSay(cid, 'Shredder Team', TALKTYPE_ORANGE_1)
local clone2 = doSummonCreature("Scyther", getCreaturePosition(cid))
doConvinceCreature(cid, clone2)
setCreatureMaxHealth(clone2, maxhealth)
doCreatureAddHealth(clone2, health)
return TRUE
end
end
tipo ta assim um scyther cria 2 scyther + não attacka nem se mexe só um attack os outros 2 não ajuda ae galera vlw