PLAYER_STATE_NONE question
#1

Does
Код:
PLAYER_STATE_NONE
refer to a idling player too?
Reply
#2

PHP код:
CMD:state(playeridparams[])
{
    if(
GetPlayerSpecialAction(playerid) == PLAYER_STATE_NONE)
    {
        
SendClientMessage(playerid, -1"GetPlayerSpecialAction == true ye");
    }
    else 
SendClientMessage(playerid, -1"It isn't");
    return 
1;

Outputs 'GetPlayerSpecialAction == true ye'
Reply
#3

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
PHP код:
CMD:state(playeridparams[])
{
    if(
GetPlayerSpecialAction(playerid) == PLAYER_STATE_NONE)
    {
        
SendClientMessage(playerid, -1"GetPlayerSpecialAction == true ye");
    }
    else 
SendClientMessage(playerid, -1"It isn't");
    return 
1;

Outputs 'GetPlayerSpecialAction == true ye'
GetPlayerSpecialAction sure of what you do??

https://sampwiki.blast.hk/wiki/Playerstates
Reply
#4

There are SPECIAL_ACTION_NONE & PLAYER_STATE_NONE, try the script by yourself, but it detects it as a playerstate too, but if you crouch, it won't. Give it a try
Reply
#5

"SPECIAL_ACTION_NONE" is one thing, and "PLAYER_STATE_NONE" is another.

PHP код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE)
if(
GetPlayerState(playerid) == PLAYER_STATE_NONE
[1] GetPlayerState
[1.1] Player states

[2] GetPlayerSpecialAction
[2.1] Special Actions
Reply
#6

I get it, but in the script, it still recognize it as special action.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)