[pedido] /carro Dialog
#3

Acabei de fazer um tutorial mermгo, tб de vacilaзгo? G_G

http://forum.sa-mp.com/showthread.ph...28#post1746528

@EDIT, pra economizar post, leia e estude isso juntamente com o tutorial pelo amor do seu "Deus"...
Aprender й уtimo.

pawn Код:
CMD:carro(playerid)
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Car", "Digite o id do carro", "Confirmar", "");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
            new car = strval(inputtext);
            new Float:x, Float:y, Float:z, Float:a;
            GetPlayerPos(playerid, x, y, z);
            GetPlayerFacingAngle(playerid, a);
            CreateVehicle(car, x, y, z, a, -1, -1, 9999999);
            return 1;
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
[pedido] /carro Dialog - by Panico622 - 21.03.2012, 23:41
Re: [pedido] /carro Dialog - by ViniBorn - 22.03.2012, 00:18
Re: [pedido] /carro Dialog - by Jeffrey_Hatrix Jeffrey_ - 22.03.2012, 00:20
Re: [pedido] /carro Dialog - by Panico622 - 22.03.2012, 00:22
Re: [pedido] /carro Dialog - by Gustavo_z - 22.03.2012, 00:23
Re: [pedido] /carro Dialog - by Jeffrey_Hatrix Jeffrey_ - 22.03.2012, 00:26
Re: [pedido] /carro Dialog - by steeldark - 22.03.2012, 00:28
Re: [pedido] /carro Dialog - by Jeffrey_Hatrix Jeffrey_ - 22.03.2012, 00:31
Re: [pedido] /carro Dialog - by steeldark - 22.03.2012, 00:37
Re: [pedido] /carro Dialog - by Sampizito - 22.03.2012, 00:59

Forum Jump:


Users browsing this thread: 1 Guest(s)