plugins/include/sourcemod.inc
changeset 280 f2a82da2facc
parent 258 2637fcf24c2f
child 285 eeccbf66d620
     1.1 --- a/plugins/include/sourcemod.inc	Sun Jan 07 08:55:02 2007 +0000
     1.2 +++ b/plugins/include/sourcemod.inc	Wed Jan 10 23:49:22 2007 +0000
     1.3 @@ -155,10 +155,11 @@
     1.4   * @param client		Player index.
     1.5   * @param name			Buffer to store the client's ip address.
     1.6   * @param maxlen		Maximum length of string buffer (includes NULL terminator).
     1.7 + * @param remport		Remove client's port from the ip string (true by default).
     1.8   * @return			True on success, false otherwise.
     1.9   * @error			If the client is not connected an error will be thrown.
    1.10   */
    1.11 -native bool:GetClientIP(client, String:ip[], maxlen);
    1.12 +native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true);
    1.13  
    1.14  /**
    1.15   * Retrieves a client's authentication string (SteamID).
    1.16 @@ -202,3 +203,23 @@
    1.17   * @return				True if player is a fake client, false otherwise.
    1.18   */
    1.19  native bool:IsPlayerFakeClient(client);
    1.20 +
    1.21 +/**
    1.22 + * Sends a message to the server console.
    1.23 + *
    1.24 + * @param format		Formatting rules.
    1.25 + * @param ...			Variable number of format parameters.
    1.26 + * @noreturn
    1.27 + */
    1.28 +native PrintToServer(const String:format[], {Handle,Float,String,_}:...);
    1.29 +
    1.30 +/**
    1.31 + * Sends a message to a client's console.
    1.32 + *
    1.33 + * @param client		Player index.
    1.34 + * @param format		Formatting rules.
    1.35 + * @param ...			Variable number of format parameters.
    1.36 + * @noreturn
    1.37 + * @error			If the client is not connected an error will be thrown.
    1.38 + */
    1.39 +native PrintToConsole(client, const String:format[], {Handle,Float,String,_}:...);