pepsi18 Posted June 3, 2014 Posted June 3, 2014 is possible ban a player with a particular account when it login
toxicsmoke11 Posted June 3, 2014 Posted June 3, 2014 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
-.Paradox.- Posted June 3, 2014 Posted June 3, 2014 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.
Max+ Posted June 3, 2014 Posted June 3, 2014 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
RenanPG Posted June 3, 2014 Posted June 3, 2014 Try this: Use server-side function ban() local accname = getAccountName(source) if ( accname == "Name Here" ) then banPlayer(source) end end addEventHandler("onPlayerLogin", root, ban)
TAPL Posted June 3, 2014 Posted June 3, 2014 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)
.:HyPeX:. Posted June 4, 2014 Posted June 4, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now