I have "Simple war" map
Im pretty new to hosting ots just need some help or a script to replace mine.
Basicaly my problem is the frag reward lua isent working i cant seem to find any problem whith it and ive tryed changing everything i could think that would stop it working.
Please can someone help me fix it.
Thanks.
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2147
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
Im pretty new to hosting ots just need some help or a script to replace mine.
Basicaly my problem is the frag reward lua isent working i cant seem to find any problem whith it and ive tryed changing everything i could think that would stop it working.
Please can someone help me fix it.
Thanks.
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2147
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end