3dtext numberplate help need..
#2

Quote:
Originally Posted by antsolen
Посмотреть сообщение
I have
Код:
public OnVehicleSpawn(vehicleid)
{
for(new vehid; vehid < MAX_VEHICLES; vehid++)
{
new message[128];
format(message,sizeof(message), "DLRP %i1", vehid);
VehicleLicense[vehid] = Create3DTextLabel(message, 0xD40000AA, 0.2, 0.2, 0.2, 50.0, 0, 1);
Attach3DTextLabelToVehicle(VehicleLicense[vehid], vehid, 0.2, 0.2, 0.2);
}
return 1;
}
But how to make , that to DLRP comes random 4 letters ?

pawn Код:
public OnVehicleSpawn(vehicleid)
{
new message[24];
format(message,sizeof(message), "%c%c%c%c %i1",(65+random(26)),(65+random(26)),(65+random(26)), vehid);
VehicleLicense[vehid] = Create3DTextLabel(message, 0xD40000AA, 0.2, 0.2, 0.2, 50.0, 0, 1);
Attach3DTextLabelToVehicle(VehicleLicense[vehid], vehid, 0.2, 0.2, 0.2);
return 1;
}
Why don't you search?
Anyway you should use SetVehicleNumberPlate.

pawn Код:
public OnVehicleSpawn(vehicleid)
{
new message[24];
format(message,sizeof(message), "%c%c%c%c %i1",(65+random(26)),(65+random(26)),(65+random(26)), vehid);
SetVehicleNumberPlate(vehicleid,message);
return 1;
}
Reply


Messages In This Thread
3dtext numberplate help need.. - by antsolen - 16.08.2011, 08:53
Re: 3dtext numberplate help need.. - by wups - 16.08.2011, 09:01
Re: 3dtext numberplate help need.. - by antsolen - 16.08.2011, 23:22
Re: 3dtext numberplate help need.. - by Shockey HD - 16.08.2011, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)