[PEDIDO] dialog veiculo
#9

pawn Код:
if(strcmp(cmd, "/veiculo", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        return SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
    }
    new ID;
    ID = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        return SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
    }
    new Cor1;
    Cor1 = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        return SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
    }
    new Cor2;
    Cor2 = strval(tmp);
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(ID, X+2, Y, Z, 0.0, Cor1, Cor2, 60000);
    return SendClientMessage(playerid,0x00FF00AA,"Veiculo Criado");
}
Reply


Messages In This Thread
[PEDIDO] dialog veiculo - by Delete_ - 14.03.2011, 00:10
Re: [PEDIDO] dialog veiculo - by Wendell_. - 14.03.2011, 00:12
Re: [PEDIDO] dialog veiculo - by Delete_ - 14.03.2011, 00:13
Re: [PEDIDO] dialog veiculo - by JonathanFeitosa - 14.03.2011, 00:16
Re: [PEDIDO] dialog veiculo - by Delete_ - 14.03.2011, 00:20
Re: [PEDIDO] dialog veiculo - by LuxurioN™ - 14.03.2011, 00:28
Re: [PEDIDO] dialog veiculo - by JonathanFeitosa - 14.03.2011, 00:41
Re: [PEDIDO] dialog veiculo - by Delete_ - 14.03.2011, 09:23
Re: [PEDIDO] dialog veiculo - by TiagoPS - 14.03.2011, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)