Custom plate?
#1

Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleNumberPlate(vehicleid,"0x00FF00FFBrutal Haulers");
    return 1;
}
doesn't work with staticvehicles, also doesn't work when i use:
Код:
CMD:veh(playerid, params[]) {

	new vehid,vehicle;
	if(PlayerInfo[playerid][pLevel] < 1) return error
	if(sscanf(params, "i", vehid)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /veh <carid>");
	else if (vehid < 400 || vehid > 611) SendClientMessage(playerid, COLOR_GREY, "[ERROR] Invalid car id! [ Car ID's range from 400 - 611 ]");
	else
	{
		new Float:x, Float:y, Float:z;
		GetPlayerPos(playerid, x, y, z);
		vehicle = CreateVehicle(vehid, x + 3, y, z, 0, 0,0, -1);
		PutPlayerInVehicle(playerid,vehicle,0);
		SendClientMessage(playerid, COLOR_GREEN, "Car spawned!");
	}
	return 1;
}
Reply
#2

I'm not sure if it's going to work but you can give it a go.
Add this under OnGameModeInit
pawn Код:
for(new i=0; i < MAX_VEHICLES; i++)
    {
        SetVehicleNumberPlate(i,"0x00FF00FFBrutal Haulers");
    }
Reply
#3

Works. Ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)