if( !strcmp( cmdtext, "/consertar", true ))
{
if( pInfo[ playerid ][ Prof ] == MECANICO || aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Moderador ] == 1 )
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Você não está em um veículo !" );
return 1;
}
SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Veículo consertado !" );
new
v = GetPlayerVehicleID( playerid )
;
resetNeon( playerid );
SetVehicleHealth( v, 1000 );
RepairVehicle( v );
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );
}
else
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Você não é um(a) Mecânico(a) !" );
}
return 1;
}
Olб, Venho atravez deste tуpico pedir para Bloquearem esse comando para procurado ou seja.... Tal player usou o comando /consertar em Fuga e aparece-se a mensagem: [ x ] Vocк estб Procurado e nгo pode usar este Comando ! Jб tentei Procurar/Fazer e nenhum deu certo! pawn Код:
|
if( !strcmp( cmdtext, "/consertar", true ))
{
if( GetPlayerWantedLevel( playerid ) < 0 ) return SendClientMessage( playerid, -1, "Vocк й um procurado pela polнcia e nгo pode consertar o veнculo!" );
if( pInfo[ playerid ][ Prof ] == MECANICO || aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Moderador ] == 1 )
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Veнculo consertado !" );
new
v = GetPlayerVehicleID( playerid )
;
resetNeon( playerid );
SetVehicleHealth( v, 1000 );
RepairVehicle( v );
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );
}
else
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo й um(a) Mecвnico(a) !" );
}
return 1;
}
if( !strcmp( cmdtext, "/consertar", true ))
{
if( pInfo[ playerid ][ Prof ] == MECANICO || aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Moderador ] == 1 )
{
if(GetPlayerWantedLevel(playerid) >0)return SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк estб Procurado e nгo pode usar este Comando !" );
if( !IsPlayerInAnyVehicle( playerid )){
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Veнculo consertado !" );
new v = GetPlayerVehicleID( playerid );
resetNeon( playerid );
SetVehicleHealth( v, 1000 );
RepairVehicle( v );
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );
}
else
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo й um(a) Mecвnico(a) !" );
}
return 1;
}
if( !strcmp( cmdtext, "/consertar", true ))
{
if( pInfo[ playerid ][ Prof ] == MECANICO || aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Moderador ] == 1 )
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
if( GetPlayerWantedLevel( playerid ) > 0 )
{
MensagemFormatada( playerid, COLOR_ERRO, "[ x ] %s Vocк estб procurado.", PlayerName( id ));
return 1;
}
SendClientMessage( playerid, COLOR_AMARELO, "[ > ] Veнculo consertado !" );
new
v = GetPlayerVehicleID( playerid )
;
resetNeon( playerid );
SetVehicleHealth( v, 1000 );
RepairVehicle( v );
PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );
}
else
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo й um(a) Mecвnico(a) !" );
}
return 1;
}
pawn Код:
Troco Wanted > 0 Agr ? kk |