Doggynub
LUA / C++
- Joined
- Sep 28, 2008
- Messages
- 2,541
- Reaction score
- 186
LUA:
function onCombat(cid, target)
if getPlayerStorageValue(cid,2345) == 2 and getPlayerStorageValue(target,2345) == 2 then
doCreatureSay(cid,"You cannot attack players which pvp mode is off.", TALKTYPE_ORANGE_1)
else
return true
end
end
it works fine no errors but when i relog server close any idea why?>