Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ====== === ====== ====== ==== ======== ============ =======
- ======= === === === === === === === === ==== ============ ========
- === === === === === === === === === === ==== === === ===
- === === === === === === === === === === ==== ===== === ====
- === === === === === === === ========== === ==== ======== === ===
- === === === === ===== === ============ === ==== ===== =========
- === === === === === === === === ==== === =======
- === ======= === === === === === ==== ============ === ====
- === ====== === === === === ======== ============ === ====
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new PlatePossible[][] ={"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
- forward SpawnPlates(vehicleid);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Simple License Plate System by Nmader");
- print("--------------------------------------\n");
- SetTimer("SpawnPlates", 1000, false);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnVehicleSpawn(vehicleid)
- {
- //NOTE: IN ORDER TO GET THREE+ DIGIT NUMBERS IN YOUR LICENSE PLATES UNCOMMENT THE LINES BELOW AND MAKE THE TRADITIONAL POSSIBILITY A COMMENT!
- new string[128];
- new randdr = random(sizeof(PlatePossible));
- //===================================[Three+ Digit Number Plates]=======================/
- if(vehicleid <= 0 && vehicleid <= 873)
- {
- new calculation = vehicleid += 126;
- format(string, sizeof(string), "%s%s%s %d", PlatePossible[randdr], PlatePossible[randdr], PlatePossible[randdr], calculation);
- }
- if(vehicleid > 873)
- {
- new calculation = vehicleid -= 827; // If you have a vehicle ID of 1965 the calculation will read the three numbers
- format(string, sizeof(string), "%s%s%s %d", PlatePossible[randdr], PlatePossible[randdr], PlatePossible[randdr], calculation);
- }
- //===================================[TRADITIONAL LICENSE PLATE NUMBERS]================/
- /*format(string, sizeof(string), "%s%s%s %d", PlatePossible[randdr], vehicleid); //traditional Example: AVIF [VEHICLE ID]
- SetVehicleNumberPlate(vehicleid, string);*/
- return 1;
- }
- public SpawnPlates(vehicleid)
- {
- for(new i=1; i<MAX_VEHICLES; i++)
- {
- SetVehicleToRespawn(i);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement