Spectate
#10

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
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."
This Works Perfects! Thank you very much, but now i have a other problem =/
Player ID 0 Crash alltimes on Spectate mode when he press FireButton Either Left Mouse Button..
This only happens if you are ID 0.

Can someone please help me out with this
Thanks!
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)