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:
Scott Ehlert
2007-06-20 11:06:58 +00:00
parent 3f4c513083
commit 243d31b7a6
2 changed files with 50 additions and 1 deletions
+12
View File
@@ -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:...);