fixed amb532
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401044
This commit is contained in:
parent
b80d04ba01
commit
c67f00b1fc
@ -269,7 +269,7 @@ public Action:Command_Ban(client, args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ServerCommand("banid %d %d", time, userid);
|
ServerCommand("banid %d %d", time, userid);
|
||||||
ServerCommand("kickid %d \"%s\"", userid, reason);
|
KickClient(clients[0], "%s", reason);
|
||||||
|
|
||||||
if (time == 0)
|
if (time == 0)
|
||||||
{
|
{
|
||||||
@ -577,7 +577,6 @@ public Action:Command_Kick(client, args)
|
|||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
new userid = GetClientUserId(clients[0]);
|
|
||||||
new String:name[65];
|
new String:name[65];
|
||||||
|
|
||||||
GetClientName(clients[0], name, sizeof(name));
|
GetClientName(clients[0], name, sizeof(name));
|
||||||
@ -595,12 +594,7 @@ public Action:Command_Kick(client, args)
|
|||||||
|
|
||||||
LogMessage("\"%L\" kicked \"%L\" (reason \"%s\")", client, clients[0], reason);
|
LogMessage("\"%L\" kicked \"%L\" (reason \"%s\")", client, clients[0], reason);
|
||||||
|
|
||||||
if (args < 2)
|
KickClient(clients[0], "%s", reason);
|
||||||
{
|
|
||||||
ServerCommand("kickid %d", userid);
|
|
||||||
} else {
|
|
||||||
ServerCommand("kickid %d \"%s\"", userid, reason);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user