removes the ability to use dirty mechanic commands in a vehicle underwater
This commit is contained in:
parent
44ccbd825d
commit
130f1c581e
@ -2357,8 +2357,9 @@ CMD:mech( playerid, params[ ] )
|
|||||||
;
|
;
|
||||||
|
|
||||||
if ( p_Class[ playerid ] != CLASS_CIVILIAN ) return SendError( playerid, "You must be a civilian to use this command." );
|
if ( p_Class[ playerid ] != CLASS_CIVILIAN ) return SendError( playerid, "You must be a civilian to use this command." );
|
||||||
if ( !IsPlayerJob( playerid, JOB_DIRTY_MECHANIC ) ) return SendError( playerid, "You are not a dirty mechanic." );
|
else if ( !IsPlayerJob( playerid, JOB_DIRTY_MECHANIC ) ) return SendError( playerid, "You are not a dirty mechanic." );
|
||||||
if ( isnull( params ) ) return SendUsage( playerid, "/(mech)anic [FIX/NOS/REMP/FLIP/FLIX/PRICE/NEARBY]" );
|
else if ( IsPlayerBelowSeaLevel( playerid ) ) return SendError( playerid, "You cannot use this command while below sea level." );
|
||||||
|
else if ( isnull( params ) ) return SendUsage( playerid, "/(mech)anic [FIX/NOS/REMP/FLIP/FLIX/PRICE/NEARBY]" );
|
||||||
else if ( strmatch( params, "fix" ) )
|
else if ( strmatch( params, "fix" ) )
|
||||||
{
|
{
|
||||||
if ( p_AntiMechFixSpam[ playerid ] > g_iTime )
|
if ( p_AntiMechFixSpam[ playerid ] > g_iTime )
|
||||||
|
Loading…
Reference in New Issue
Block a user