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!