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:
parent
0edae8772e
commit
7a842771c8
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user