Code:
Format specifier
Specifier Description
%b Binary digits in the value
%n Requires a client index. Expands to a string containing the player's name.
If the client index is 0, the string will be: Console
%N Requires a client index. Expands to 1<2><3><4> where 1 is the player's name, 2 is the player's userid, 3 is the player's SteamID, and 4 the player's team name.
If the client index is 0, the string will be: Console<0><Console><Console>
%l Translates a phrase from a key. Similar to %L with the difference it will use the client's index set internally by the function.
This is only allowed in functions which act directly on one or more clients.
Note:To complement this, a new ⇅ SetGlobalTransTarget native to set the current index has been added.
This is useful to be used before with natives which are not player-oriented", like a bunch of formatex.
PHP Code:
formatex(sMessage, MAX_COMMAND_LENGTH, "\*\*\* %n killed %n with a headshot from %s \*\*\*", killer, victim, sWpnName);
}
else
{
formatex(sMessage, MAX_COMMAND_LENGTH, "%n killed %n with %s", killer, victim, sWpnName);
__________________