Jump to content

its posible


pepsi18

Recommended Posts

Posted
function testOne() 
local playerAccount = getPlayerAccount(source) 
if playerAccount == "test" then 
banPlayer(source) 
end 
end 
addEventHandler("onPlayerLogin",root,testOne) 

not tested,add this resource to admin acl group to work

and change test to your account name which u want banned

Posted

Use getAccount name, and check if the player's account name is "textname" and then ban him/her.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted
  
addEventHandler ( 'onPlayerLogin', getRootElement ( ), 
function () 
if (getPlayerAccount(getAccountName(source) == 'Name Here' )) then 
banPlayer ( source, false, false, true, getRootElement ( ), 'reason ban' ) 
   end 
  end 
  ) 

learn from it ,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

Try this:

Use server-side

function ban() 
  
    local accname = getAccountName(source) 
    if ( accname == "Name Here" ) then 
        banPlayer(source) 
    end 
     
end 
addEventHandler("onPlayerLogin", root, ban) 

Posted
AccBans = { 
    ["Account Name Here"] = true, 
    ["Account Name Here"] = true, 
    ["Account Name Here"] = true 
} 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    local accountName = getAccountName(account) 
    if AccBans[accountName] then 
        banPlayer(source) 
    end 
end) 

CiTLh.png
Posted

banPlayer lets you ban by username thougt. just re-read the function.

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...