if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) { if(newkeys == KEY_AIM)//Right Mouse { ReverseSpectate(playerid); } if(newkeys == KEY_FIRE)//Left Mouse { NextSpectate(playerid); } }