GetPlayerState: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
{{Welcome|desc=Gets the [[Player_States|state]] of the specified player.|
{{Welcome|desc=Gets the [[Player_States|state]] of the specified player.|
params=<syntaxhighlight lang="lua">playerid</syntaxhighlight>|
params=<syntaxhighlight lang="lua">playerid</syntaxhighlight>|
example=<source lang="lang">
if( GetPlayerState( id ) == PLAYER_STATE_WASTED )
    print(" The player "+ id + " is not spawned!" );
</source>|
}}
}}

Latest revision as of 16:20, 1 April 2022


Description:
Gets the state of the specified player.


Parameters:

playerid


Return Values:
This function does not return any specific values.


Example

if( GetPlayerState( id ) == PLAYER_STATE_WASTED )
    print(" The player "+ id + " is not spawned!" );