30.10.2017, 21:11
Quote:
I need help about Vehicle Plates
Code for Plates: Код HTML:
{ new string[30]; format(string, sizeof(string),"BG - %d", Vehicles); SetVehicleNumberPlate(Vehicles, string); SetVehicleToRespawn(Vehicles); } Код HTML:
Enum for Vehicles { avModel, Float:avPozX, Float:avPozY, Float:avPozZ, Float:avPozA, avBoja1, avBoja2, avVlasnik[60], avImaVlasnika, avID, avZakljucan, avCijena } EDIT: I mean vehicle id to replace %d |
Код:
for(new v = 1; v < MAX_VEHICELS; v++) //MAX_VEHILCES or your pool enum. EX: new VehEnum[50][EnumVeh]; Then replace MAX_VEHICLES with 50 { new string[30]; format(string, sizeof(string),"BG - %d", VehEnum[v][avID]); SetVehicleNumberPlate(v, string); SetVehicleToRespawn(v); }