Added KickClient() native. This is so that the "Kicked from console" string doesn't appear in the disconnect reason.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40998
This commit is contained in:
@@ -494,3 +494,15 @@ native Float:GetClientAvgPackets(client, NetFlow:flow);
|
||||
* @error Returns 0 if invalid userid.
|
||||
*/
|
||||
native GetClientOfUserId(userid);
|
||||
|
||||
/**
|
||||
* Disconnects a client from the server.
|
||||
*
|
||||
* @param client Client index.
|
||||
* @param format Optional formatting rules for disconnect reason.
|
||||
* Note that a period is automatically appended to the string by the engine.
|
||||
* @param ... Variable number of format parameters.
|
||||
* @noreturn
|
||||
* @error Invalid client index, or client not connected.
|
||||
*/
|
||||
native DisconnectClient(client, const String:format[]="", any:...);
|
||||
|
||||
Reference in New Issue
Block a user