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

Ban Automatic

icaro1988

New Member
Joined
Jul 1, 2009
Messages
63
Reaction score
1
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.

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 ++
 
Code:
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.")	
[COLOR="red"]		doAddBanishment(accId, length, reason) --add locals
                doRemoveCreature(player)[/COLOR]


        end			
   	end	
	return true
end
check this but first add locals ;d
 
Back
Top