Spectate
#9

Try this:
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
    if(newkeys == KEY_HANDBRAKE)//Right Mouse
    {
        ReverseSpectate(playerid);
    }
    if(newkeys == KEY_FIRE)//Left Mouse
    {
        NextSpectate(playerid);
    }
}
https://sampwiki.blast.hk/wiki/GetPlayerKeys explains that "KEY_AIM is undefined in SA-MP includes. You can either define it yourself or use KEY_HANDBRAKE."
Reply


Messages In This Thread
Spectate - by NeverKnow - 22.08.2012, 21:56
Re: Spectate - by Roko_foko - 22.08.2012, 22:00
Re: Spectate - by NeverKnow - 22.08.2012, 22:03
Re: Spectate - by Roko_foko - 22.08.2012, 22:07
Re: Spectate - by NeverKnow - 22.08.2012, 22:10
Re: Spectate - by NeverKnow - 06.09.2012, 14:51
Re: Spectate - by NeverKnow - 08.09.2012, 21:21
Re: Spectate - by NeverKnow - 24.09.2012, 07:03
Re: Spectate - by clarencecuzz - 24.09.2012, 07:08
Re: Spectate - by NeverKnow - 28.09.2012, 07:47

Forum Jump:


Users browsing this thread: 2 Guest(s)