SA-MP Forums Archive
[Ajuda] Comando/Procurado - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comando/Procurado (/showthread.php?tid=464787)



Comando/Procurado - Resolvido - Sti - 19.09.2013

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



Re: Comando/Procurado - Blix - 19.09.2013

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?


Re: Comando/Procurado - Sti - 19.09.2013

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



Re: Comando/Procurado - Blix - 19.09.2013

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?


Re: Comando/Procurado - Sti - 19.09.2013

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



Re: Comando/Procurado - Caio_Freeze - 19.09.2013

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



Re: Comando/Procurado - Blix - 19.09.2013

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



Re: Comando/Procurado - iFucK - 19.09.2013

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


Re: Comando/Procurado - Sti - 19.09.2013

Obrigado iFuck, Caio e Blix + REP


Re: Comando/Procurado - Caio_Freeze - 19.09.2013

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 :/