27.12.2012, 19:19
Try this
Instead of
pawn Код:
if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
{
AdvanceSpectate(playerid);
}
else if(newkeys & KEY_JUMP && GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
{
ReverseSpectate(playerid);
}
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && spectatorid[playerid] != INVALID_PLAYER_ID)
{
if(newkeys & KEY_CROUCH) AdvanceSpectate(playerid);
else if(newkeys & KEY_JUMP) ReverseSpectate(playerid);
}