disable /sync in passive mode

This commit is contained in:
Lorenc Pekaj 2018-11-05 10:49:23 +11:00
parent b09f52b4fb
commit 1139f4e92e

View File

@ -546,6 +546,9 @@ CMD:sync( playerid, params[ ] )
if ( GetPlayerWeapon( playerid ) == WEAPON_SNIPER )
return SendError( playerid, "You cannot synchronize yourself holding a sniper." );
if ( IsPlayerPassive( playerid ) )
return SendError( playerid, "You cannot use this feature while in passive mode." );
new
curr_server_time = GetServerTime( );