use jail function in place of variable

This commit is contained in:
Lorenc Pekaj 2019-01-02 18:54:19 +11:00
parent 61597d5bf7
commit 4aedc7dd5c

View File

@ -553,7 +553,7 @@ 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 } )
if ( IsPlayerJailed( playerid ) )
return SendError( playerid, "You cannot use this feature while you are jailed." );
if ( IsPlayerInAnyVehicle( playerid ) )