Bem, em primeiro lugar:
return false doPlayerSendTextMessage(cid,5,"Você não psssssacar o seu próprio time.")
depois de um return você não pode colocar nenhuma função!
e outra
if getPlayerStorageValue(target,timest) == getPlayerStorageValue(cid,timest) then
timest não foi definido, é nulo
function onAttack(cid, target)
local timest = 71237
if isPlayer(target) then
if (getPlayerStorageValue(target, timest) == getPlayerStorageValue(cid, timest)) then
doPlayerSendTextMessage(cid,5,"Você não pode atacar o seu próprio time.")
doCreatureSetSkullType(cid, 0)
return false
end
end
return true
end







info
Grupo: Barão
Registrado: 19/11/11
Posts: 221
Reputação: +70
function onAttack(cid, target) if isPlayer(target) then if getPlayerStorageValue(target,timest) == getPlayerStorageValue(cid,timest) then doPlayerSendTextMessage(cid,5,"Você não pode atacar o seu próprio time.") doCreatureSetSkullType(cid, 0) return false doPlayerSendTextMessage(cid,5,"Você não psssssacar o seu próprio time.") else end end return true endn funciona , nem ontarget
alguém sabe como fazer isso ? abs