GetPlayerState: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome|desc=Gets the state of the specified player.| params=<syntaxhighlight lang="lua">playerid</syntaxhighlight>|") |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
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!" );