Car colour
#2

Use ZCMD, its way easier to use & faster.

Take a look at my command.
pawn Код:
CMD:v(playerid, params[])
{
        new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
        GetPlayerName(playerid, name, sizeof(name));
        if(PlayerInfo[playerid][pAdminLevel] >= 4)
        {
            new vehid;new b1;new b2;
            if(sscanf(params, "iii", vehid,b1,b2)) SendClientMessage(playerid, COLOR_RED, "Use: /v [car id] [color 1] [color 2]");
            else if(vehid < 400 || vehid > 611) return SendClientMessage(playerid, COLOR_RED, "Wrong car id!");
            else
            {
                new Float:x, Float:y, Float:z;new Float:kut;
                GetPlayerPos(playerid, x, y, z);
                GetPlayerFacingAngle(playerid, kut);
                CreateVehicle(vehid, x + 3, y + 1, z, kut, b1, b2, -1);
                format(string, sizeof(string), "Administrator %s have just created new vehicle %i", name,vehid);
                SendClientMessageToAll(COLOR_RED,string);
            }
        }
        return 1;
}
Reply


Messages In This Thread
Car colour - by XxXBr0nXxX - 07.09.2013, 18:40
Re: Car colour - by SeniorGamer - 08.09.2013, 02:44

Forum Jump:


Users browsing this thread: 2 Guest(s)