[Pedido] /pintar [Cor ID] [Cor 2 ID]
#2

pawn Код:
if(!strcmp("/pintar",cmdtext))
{
    new tmp[24], idx; tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        return SendClientMessage(playerid, -1, "/pintar [cor 1] [cor 2]");

    new color1 = strval(tmp);
    if(color1 < 0 || color1 > 300)
        return SendClientMessage(playerid, -1, "Cores de 0/300.");

    new color2;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        color2 = color1;
    else
        color2 = strval(tmp);

    if(color2 < 0 || color2 > 300)
        return SendClientMessage(playerid, -1, "Cores de 0/300.");

    ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
}
Reply


Messages In This Thread
[Pedido] /pintar [Cor ID] [Cor 2 ID] - by Gustavo_Samp - 17.11.2011, 19:04
Re: Ajude-Me - by ViniBorn - 17.11.2011, 19:36
Re: Ajude-Me - by Gustavo_Samp - 17.11.2011, 21:29
Re: Ajude-Me - by [KoS]Izaac - 17.11.2011, 22:05
Re: Ajude-Me - by [R] ousenber [K] - 17.11.2011, 22:08
Re: Ajude-Me - by Gustavo_Samp - 17.11.2011, 22:10
Re: Ajude-Me - by dPlaYer_ - 17.11.2011, 22:11

Forum Jump:


Users browsing this thread: 3 Guest(s)