24.09.2012, 07:08
Try this:
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."
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
if(newkeys == KEY_HANDBRAKE)//Right Mouse
{
ReverseSpectate(playerid);
}
if(newkeys == KEY_FIRE)//Left Mouse
{
NextSpectate(playerid);
}
}