adds jail check to sync command

This commit is contained in:
Damen 2019-01-02 01:07:25 -05:00
parent cbee6e0ab9
commit f835bca30e

View File

@ -553,6 +553,9 @@ CMD:sync( playerid, params[ ] )
if ( ! IsPlayerConnected( playerid ) || ! IsPlayerSpawned( playerid ) || p_SyncingPlayer{ playerid } == true || IsPlayerAFK( playerid ) )
return SendError( playerid, "You cannot use this feature at the moment." );
if ( p_Jailed{ playerid } )
return SendError( playerid, "You cannot use this feature while you are jailed." );
if ( IsPlayerInAnyVehicle( playerid ) )
return SendError( playerid, "You cannot synchronize yourself in a vehicle." );