31.05.2011, 17:07
Hey all. How i can make that all cars on my server have same plates? Something like on Romanian Super Stunt - they have RSS. Help me pL0x :P
public OnVehicleSpawn(vehicleid)
{
new rand = random(3000); rand += 1500;
new string[32];
format(string, sizeof(string), "{D20000}YOURPLATE", rand);
SetVehicleNumberPlate(vehicleid, string);
}
public OnGameModeInit()
{
SetVehiclePlates();
return 1;
}
public OnVehicleSpawn(vehicleid)
{
SetVehiclePlates();
return 1;
}
stock SetVehiclePlates()
{
for(new i=0;i<MAX_VEHICLES;i++)
{
SetVehicleNumberPlate(i, "Your plate"); //All vehicles will have this plate
}
return 1;
}