Add new class natives

Adding ZR_GetHumanClass and ZR_GetZombieClass natives to expose external plugins to more than just the clients active class.
This commit is contained in:
jargon-au 2014-10-15 09:25:07 +11:00
parent 0edae8772e
commit 7a842771c8
1 changed files with 18 additions and 0 deletions

View File

@ -63,6 +63,24 @@ native bool:ZR_IsValidClassIndex(classIndex);
*/
native bool:ZR_GetActiveClass(client);
/**
* Gets the current human class index that the player is using.
*
* @param client The client index.
*
* @return The human class index.
*/
native bool:ZR_GetHumanClass(client);
/**
* Gets the current zombie class index that the player is using.
*
* @param client The client index.
*
* @return The zombie class index.
*/
native bool:ZR_GetZombieClass(client);
/**
* Selects a class for a player.
*