29.09.2018, 11:11
Does
refer to a idling player too?
Код:
PLAYER_STATE_NONE
PLAYER_STATE_NONE
CMD:state(playerid, params[])
{
if(GetPlayerSpecialAction(playerid) == PLAYER_STATE_NONE)
{
SendClientMessage(playerid, -1, "GetPlayerSpecialAction == true ye");
}
else SendClientMessage(playerid, -1, "It isn't");
return 1;
}
PHP код:
|
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE)
if(GetPlayerState(playerid) == PLAYER_STATE_NONE)