forked from UNLOZE/sm-plugins
PlayerManager: Add planned native, STILL WIP!
Wont break anything, so whatever. Just doesnt do anything.
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
/**
|
||||
* Check if clients usertype is legit.
|
||||
*
|
||||
* @param clients The client index.
|
||||
* @param client The client index.
|
||||
*
|
||||
* @return True if valid, false otherwise.
|
||||
* @return True if legit, false otherwise.
|
||||
* @error Invalid client index, not connected or fake client.
|
||||
*/
|
||||
native bool PM_IsPlayerSteam(int client);
|
||||
@@ -17,7 +17,7 @@ native bool PM_IsPlayerSteam(int client);
|
||||
/**
|
||||
* Retrieve clients usertype.
|
||||
*
|
||||
* @param clients The client index.
|
||||
* @param client The client index.
|
||||
* @param type The buffer to write to.
|
||||
* @param maxlength The maximum buffer length.
|
||||
*
|
||||
@@ -26,6 +26,16 @@ native bool PM_IsPlayerSteam(int client);
|
||||
*/
|
||||
native bool PM_GetPlayerType(int client, char[] type, int maxlength);
|
||||
|
||||
/**
|
||||
* Retrieve clients globally unique identifier (GUID).
|
||||
*
|
||||
* @param client The client index.
|
||||
*
|
||||
* @return GUID on success, -1 otherwise.
|
||||
* @error Invalid client index, not connected or fake client.
|
||||
*/
|
||||
native int PM_GetPlayerGUID(int client);
|
||||
|
||||
|
||||
public SharedPlugin __pl_PlayerManager =
|
||||
{
|
||||
@@ -44,5 +54,6 @@ public SharedPlugin __pl_PlayerManager =
|
||||
{
|
||||
MarkNativeAsOptional("PM_IsPlayerSteam");
|
||||
MarkNativeAsOptional("PM_GetPlayerType");
|
||||
MarkNativeAsOptional("PM_GetPlayerGUID");
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user