[PED/AJUDA]Comando /car
#9

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


Messages In This Thread
[PED/AJUDA]Comando /car - by Felipe_Wesker - 18.12.2010, 20:51
Re: [PED/AJUDA]Comando /car - by diretor7 - 18.12.2010, 20:59
Re: [PED/AJUDA]Comando /car - by duany123 - 18.12.2010, 21:26
Re: [PED/AJUDA]Comando /car - by Felipe_Wesker - 18.12.2010, 21:35
Re: [PED/AJUDA]Comando /car - by Stuart2010 - 18.12.2010, 21:58
Re: [PED/AJUDA]Comando /car - by diretor7 - 18.12.2010, 22:05
Re: [PED/AJUDA]Comando /car - by Felipe_Wesker - 18.12.2010, 22:41
Re: [PED/AJUDA]Comando /car - by Stuart2010 - 18.12.2010, 23:45
Re: [PED/AJUDA]Comando /car - by TiagoPS - 19.12.2010, 10:56
Re: [PED/AJUDA]Comando /car - by Felipe_Wesker - 19.12.2010, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)