• 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!

tfs 1.0 no exp from same ip PVP-E

vingo

Active Member
Joined
Oct 27, 2012
Messages
464
Reaction score
43
Is there any way to make this into a script? Another player kills someone from the same ip and gains no exp.


I have it for this.


Code:
function onKill(cid, target, lastHit)
local reward = {
        item = 2152, --ITEM ID!
        count = 15 -- How many?
}
    if cid ~= target and isPlayer(target) and getPlayerLevel(target) <= 132 then
    if getPlayerIp(cid) ~= getPlayerIp(target) then
                        doPlayerAddItem(cid, 2160, 1)
                doPlayerAddItem(cid, 9020, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You cannot take reward by killing a player of the same IP.")
                end
end
return TRUE
end
 
You may disable exp rewarding for kills in config.lua and manually rewarding in the script, you know how to do it?
 
Players should get exp from kills, its activated. Im going to have a war server and I dont want people to abuse it.
 
Back
Top