Current work - pure communism (1 Viewer)

Max .:[Old Panda]:.

New Member
Joined
Oct 5, 2012
Messages
406
PHP:
public Action:Ban(client, args)
{
decl String:clientname[MAXPLAYERS+1];
GetClientName(client, clientname, sizeof(clientname));
CurrentBanAmount[client] = CurrentBanAmount[client]+1;
if(CurrentBanAmount[client] < GetConVarInt(BanCV))
{
LogToFile(Logfile, "%s has had %d out of %d warnings", clientname[client], CurrentBanAmount[client], GetConVarInt(BanCV));
PrintToChat(client, "You have had %d out of %d warnings", CurrentBanAmount[client], GetConVarInt(BanCV));
}
else
{
if(GetConVarInt(ResultCV) == 2)
{
LogToFile(Logfile, "%s was banned for abusing admin priveleges", clientname[client]);
BanClient(client, GetConVarInt(BantimeCV), BANFLAG_AUTO, "You were banned for abusing admin priveleges");
}
else
{
LogToFile(Logfile, "%s was kicked for abusing admin priveleges", clientname[client]);
KickClient(client, "You were kicked for abusing admin priveleges");
}
}
return Plugin_Handled;
 
~reserved~
 
wut is that hax max?
 
If I understand correctly you wrote something to ban admins for abusing admin privileges?
 

Users who are viewing this thread