Merge pull request #313 from alliedmodders/set-client-name

Add SetClientName native.
This commit is contained in:
Nicholas Hastings
2015-04-01 22:29:44 -04:00
24 changed files with 276 additions and 28 deletions
+9
View File
@@ -332,6 +332,15 @@ native ActivateEntity(entity);
*/
native SetClientInfo(client, const String:key[], const String:value[]);
/**
* Changes a client's name.
*
* @param client Player's index.
* @param name New name.
* @error Invalid client index, or client not connected.
*/
native void SetClientName(int client, const char[] name);
/**
* Gives ammo of a certain type to a player.
* This natives obeys the maximum amount of ammo a player can carry per ammo type.