PHP:
function onCastSpell(cid, var)
local ilSummon = 0 --0 = brak limitu ilo?ci potwor?w
local pSummon = getCreatureSummons(cid)
local name = "elf"
local pos = getCreaturePosition(cid)
if(ilSummon and (table.maxn(pSummon) >= ilSummon)) then
doPlayerSendCalcel(cid, "You can't summon next creature.")
else
doConvinceCreature(cid, doCreateMonster(name, pos, false))
end
return 0
end
) Mo?e nie u?ywac do tego spells tylko przerobi? na actions ? Ju? sam nie wiem, prosz? o porade i ew. pomoc.