forked from TeamUlysses/ulib
Merge pull request #91 from wrefgtzweve/patch-1
Use game.KickID instead of RunConsoleCommand
This commit is contained in:
commit
b97be76b2f
@ -197,7 +197,7 @@ function ULib.addBan( steamid, time, reason, name, admin )
|
||||
end
|
||||
|
||||
-- This redundant kick is to ensure they're kicked -- even if they're joining
|
||||
RunConsoleCommand("kickid", steamid, shortReason or "")
|
||||
game.KickID( steamid, shortReason or "" )
|
||||
|
||||
writeBan( t )
|
||||
hook.Call( ULib.HOOK_USER_BANNED, _, steamid, t )
|
||||
|
Loading…
Reference in New Issue
Block a user