27.08.2011, 10:29
(
Последний раз редактировалось Shadoww5; 28.08.2011 в 11:28.
)
PHP код:
new bool:car[MAX_VEHICLES];
public OnGameModeInit()
{
for(new i = 1; GetVehicleModel(i); i ++)
{
new sStr[10];
format(sStr, 10, "%s%s-%d%d-%d", random(25)+65, random(25)+65, random(10), random(10), i);
SetVehicleNumberPlate(i, sStr);
car[i] = true;
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
if(!car[vehicleid])
{
new sStr[10];
format(sStr, 10, "%s%s-%d%d-%d", random(25)+65, random(25)+65, random(10), random(10), vehicleid);
SetVehicleNumberPlate(vehicleid, sStr);
car[vehicleid] = true;
}
return 1;
}