I need to adjust this script to be the case with the player taking the same IP ban automatic. More've tried all ways without success.
Help me Plx
Rep ++
LUA:
local storage = 5555
function onKill(cid, target)
local frags = getPlayerStorageValue(cid, storage)
if(isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
setPlayerStorageValue(cid, storage, frags + 1)
doAddPremiumPoints(getPlayerAccount(cid),1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return true
end
Help me Plx
Rep ++