05.01.2011, 10:02
@[FeK]DraKiNs:
I guess it will be better if you just add an amount to the vehicleid. Then vehicles never have odds to have the same numberplate (how they also are) and it's better instead random numbers I guess.
I guess it will be better if you just add an amount to the vehicleid. Then vehicles never have odds to have the same numberplate (how they also are) and it's better instead random numbers I guess.
pawn Код:
stock CreateRandomNumberPlate(vehicleid)
{
new
string[8]
;
format(string, sizeof(string), "NUM-%d", (vehicleid + 1000));
SetVehicleNumberPlate(vehicleid, string);
SetVehicleToRespawn(vehicleid);
return vehicleid;
}