OnPlayerKeyStateChange help!
#6

Try this
pawn Код:
if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
        {
            AdvanceSpectate(playerid);
        }
        else if(newkeys & KEY_JUMP && GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
        {
            ReverseSpectate(playerid);
        }
Instead of
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
        {
        if(newkeys & KEY_CROUCH) AdvanceSpectate(playerid);
        else if(newkeys & KEY_JUMP) ReverseSpectate(playerid);
    }
Reply


Messages In This Thread
OnPlayerKeyStateChange help! - by mickos - 27.12.2012, 18:19
Re: OnPlayerKeyStateChange help! - by Faisal_khan - 27.12.2012, 18:34
Re: OnPlayerKeyStateChange help! - by mickos - 27.12.2012, 18:59
Re: OnPlayerKeyStateChange help! - by Faisal_khan - 27.12.2012, 19:10
Re: OnPlayerKeyStateChange help! - by mickos - 27.12.2012, 19:15
Re: OnPlayerKeyStateChange help! - by Faisal_khan - 27.12.2012, 19:19
Re: OnPlayerKeyStateChange help! - by mickos - 27.12.2012, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)