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

a ban script

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
Lua:
local config ={
local loot = 2160
local account = getPlayerAccount(cid) == getPlayerAccount(kill) 
}

function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
      doPlayerAddItem(cid, ..loot..,5)
elseif getPlayerName(cid) == getPlayerName(target) 
         doAddBanishment(..account..[7, 5, 4, You have bin cheating., Auto Ban)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
  end
end
return true
end

i wanna that player that kills a player 3 times with same ip in a road will get ban 7 days please help realy need this will rep 2 times...

I need help, people is cheating on pvp-e ots.
Player Dalale and Daliko cheats like this


Dalale kills daliko
daliko kills dalale

<---> and so on.
They both get high lvled and sometimes im offline when people is cheating so they are running outside Depot and ue people then they die so other people gets exp and gets high lvled.

So a script like this would solve it.

Dalale kills Daliko after 3x of kills you get banned.
If somone could fix it.
 
Last edited:
well let me help

fisrt of all

Lua:
                doPlayerAddItem(cid, config.item, config.count)
it sude be doPlayerCountTarget i think why get a item for ban? and why a cc lol
 
Its your server I know nothing about it, its there for you to edit it, also theres a word else. you don't know anything about coding.. so just use the code and go on >.>
 
lol i dont wanna those who cheats to get cash have 0 iq?

When X player kill X player with ip 1
if he makes it 3 times then he gets 7 days ban not 7 cc
 
item = doPlayerAddItem(cid,loot,5)

when you kill me 3 times with my ip and tyoure ip.

Then you get a banishment NOT A REWARD read before post plox...
 
elseif getPlayerName(cid) == getPlayerName(target) --> missing then and .. WHY THE HELL ARE U CHECKING IT?
item = doPlayerAddItem(cid,loot,5) --> unknow loot
doPlayerAddBan(cid, 7) --wanna it to be 7 days ban --> unknow function

sugestion:
doAddIpBanishment(ip[, length[, comment[, admin]]])
doAddNamelock(name[, reason[, action[, comment[, admin]]]])
doAddBanishment(accId[, length[, reason[, action[, comment[, admin]]]]])
doAddDeletion(accId[, reason[, action[, comment[, admin]]]]])
doAddNotation(accId[, reason[, action[, comment[, admin]]]]])

 
well its an exempel and u are the re*tard leave this forum mor**n

ban=banishment i dident gonna use it and also i made a new function that is doPlayerAddban easier to remember?
 
Back
Top Bottom