Jump to content

Question

Posted

Stiu ca ar trebui sa mai caut da nu gasesc si nu inteleg cum sa rezolv problema

COMMAND:car(playerid, params[])
    {
        new carid, carcolor1, carcolor2;
        if(!sscanf(params, "iii", carid, carcolor1, carcolor2))
        {
            if(carid >= 400 && carid <= 611)
            {
                if(carcolor1 >= 0 && carcolor1 <= 252)
                {
                    if(carcolor2 >= 0 && carcolor2 <= 252)
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X, Y, Z);
                        CreateVehicle(carid, X+4, Y, Z, 10, carcolor1, carcolor2, 100);
                        SendClientMessage(playerid, 0xD8D8D8FF, "Vehicle Spawned");
                        return 1;
                    }
                    else return SendClientMessage(playerid, 0xD8D8D8FF, "Only color id's between 0 and 252 are avaliable.");
                }
                else return SendClientMessage(playerid, 0xD8D8D8FF, "Only color id's between 0 and 252 are avaliable.");
            }
            else return SendClientMessage(playerid, 0xD8D8D8FF, "Only id's between 400 and 611 are avaliable.");
        }
        else return SendClientMessage(playerid, 0xD8D8D8FF, "USAGE: /spawncar [VehicleId] [Color 1][Color 2]");
    }

Sa zicem ca creez o masina, dupaia mai vreau una da cea veche sa dispara.

signature.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=176.31.142.87&port=7777&bg_image=

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.