25.09.2017, 11:12
Queria que os Jogadores procurados nгo conseguissem usar esse comando, aparecer uma mensagem tipo: "vocк estб procurado e nгo pode usar esse comando"
pawn Код:
if( !strcmp( cmdtext, "/consertar", true ))
{
if( pInfo[ playerid ][ PLAYER_VIP ] == 1 || dini_Int( f( playerid ), "*******r" ) == 1 || pInfo[ playerid ][ Prof ] == MECANICO || aInfo[ playerid ][ Admin ] == 1 || aInfo[ playerid ][ Ajudante ] == 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;
}