• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Need help

Robbiet6

New Member
Joined
Feb 22, 2009
Messages
83
Reaction score
1
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
 
Back
Top