TaurenLess
New Member
Code:
function onAttack(cid, target)
if isPlayer(target) and getPlayerGuildId(cid) == getPlayerGuildId(target) then
if getPlayerStorageValue(cid, 57090) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode atacar membros da própria guild. Para desativar use: !pvp on.")
local pk = getCreatureSkullType(cid)
if pk == 0 then
doCreatureSetSkullType(cid, 0)
end
return false
end
end
return true
end
With this script the player does not attack players from the same guild. But attacks with spell... How not to attack with spell?
Sorry, bad english