[Ajuda] Comando/Procurado
#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( 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;
    }
Reply
#2

Quote:
Originally Posted by Sti
Посмотреть сообщение
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( 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;
    }
esse comando foi vocк que fez?
Reply
#3

Não, Este Comando está no GameMode que estou usando...
Reply
#4

Quote:
Originally Posted by Sti
Посмотреть сообщение
Nгo, Este Comando estб no GameMode que estou usando...
hum pelo menos admite, se vocк tivesse dito que era seu , ia pedir uma explicaзгo de cada coisa..
mas enfim como й esse procurado que tu quer , й das estrelas amarelas nй? embaixo do dinheiro?
Reply
#5

Sim,Bloquear este Comando para os Players que estão Procurados..
Reply
#6

tenta ae

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;
    }
Reply
#7

pawn Код:
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;
}
Reply
#8

pawn Код:
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;
    }
@Caio
Troco Wanted > 0 Agr ? kk
Reply
#9

Obrigado iFuck, Caio e Blix + REP
Reply
#10

Quote:
Originally Posted by iFucK
Посмотреть сообщение
pawn Код:
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;
    }
@Caio
Troco Wanted > 0 Agr ? kk
troquei pq me confundi fiz na pressa dps que postei que eu vi :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)