[AJUDA/PEDIDO] Comando nгo achados
#37

Agora fiz conforme ele me pediu no MSN:

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/pintar"true) == 0)
    {
        if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid0xFF0000FF"Vocк nгo estб em nenhum veiculo.");
        
ShowPlayerDialog(playerid49DIALOG_STYLE_LIST"Escolha a primeira cor que vocк quer:""Amarelo\nAzul\nBranco\nVerde\nMarrom\nRoxo\nPreto\nVermelho\nRosa""Enviar""Cancelar");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 49)
    {
        if(
response)
        {
            if(
listitem == 0) { SetPVarInt(playerid"Cor"6); }
            else if(
listitem == 1) { SetPVarInt(playerid"Cor"7); }
            else if(
listitem == 2) { SetPVarInt(playerid"Cor"1); }
            else if(
listitem == 3) { SetPVarInt(playerid"Cor"16); }
            else if(
listitem == 4) { SetPVarInt(playerid"Cor"113); }
            else if(
listitem == 5) { SetPVarInt(playerid"Cor"148); }
            else if(
listitem == 6) { SetPVarInt(playerid"Cor"0); }
            else if(
listitem == 7) { SetPVarInt(playerid"Cor"3); }
            else if(
listitem == 7) { SetPVarInt(playerid"Cor"126); }
            
ShowPlayerDialog(playerid50DIALOG_STYLE_LIST"Agora escolha a segunda cor:""Amarelo\nAzul\nBranco\nVerde\nMarrom\nRoxo\nPreto\nVermelho\nRosa""Enviar""Cancelar");
        }
    }
    if(
dialogid == 50)
    {
        if(
response)
        {
            if(
listitem == 0) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 6); }
            else if(
listitem == 1) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 7); }
            else if(
listitem == 2) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 1); }
            else if(
listitem == 3) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 16); }
            else if(
listitem == 4) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 113); }
            else if(
listitem == 5) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 148); }
            else if(
listitem == 6) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 0); }
            else if(
listitem == 7) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 3); }
            else if(
listitem == 7) { ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), 126); }
            
DeletePVar(playerid"Cor");
        }
    }
    return 
1;

Reply


Messages In This Thread
[AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 16:05
Re: [AJUDA/PEDIDO] Comando nгo achados - by Macintosh - 10.07.2011, 16:18
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 16:54
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 16:58
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 10.07.2011, 17:08
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 17:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 23:17
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 23:30
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 13:26
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 14:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by Macintosh - 11.07.2011, 15:01
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 16:53
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 11.07.2011, 17:07
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:16
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:32
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 11.07.2011, 17:33
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:49
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 18:02
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 19:14
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 20:41
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 21:09
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 21:13
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 21:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 11.07.2011, 21:32
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 21:47
Re: [AJUDA/PEDIDO] Comando nгo achados - by CocaC0la - 11.07.2011, 21:59
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 22:05
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 12.07.2011, 03:34
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 04:20
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 12.07.2011, 12:43
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 14:22
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 14:48
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 15:10
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 15:34
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 15:35
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 12.07.2011, 16:13
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 13.07.2011, 12:45
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 13.07.2011, 14:23

Forum Jump:


Users browsing this thread: 8 Guest(s)