Hello galera I am here again to ask his help pretend I want to make is that if the player has an array cannot attack the monster but even with the storage it strikes but the Possibly get is without life no but he does not die here the script
function onTarget(cid, target)
if isPlayer(cid) and isMonster(target) and (getCreatureName(target) == "Monster") then
if (getGlobalStorageValue(GRANTOWER.FINALWINNER) == getCreatureName(cid)) then
doPlayerSendCancel(cid, "MSG")
return FALSE
end
end
return TRUE
end
tfs 0.3.2
The above script is for the player who has storage can not attack the monster more ta not running the player can attack more when life reaches zero the bixo not die
function onTarget(cid, target)
if isPlayer(cid) and isMonster(target) and (getCreatureName(target) == "Monster") then
if (getGlobalStorageValue(GRANTOWER.FINALWINNER) == getCreatureName(cid)) then
doPlayerSendCancel(cid, "MSG")
return FALSE
end
end
return TRUE
end
tfs 0.3.2
The above script is for the player who has storage can not attack the monster more ta not running the player can attack more when life reaches zero the bixo not die
Last edited: