Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ====== === ====== ====== ==== ======== ============
- ======= === === === === === === === === ==== ============
- === === === === === === === === === === ==== ===
- === === === === === === === === === === ==== =====
- === === === === === === === ========== === ==== ========
- === === === === ===== === ============ === ==== =====
- === === === === === === === === ==== ===
- === ======= === === === === === ==== ============
- === ====== === === === === ======== ============
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Simple License Plate System by Nmader");
- print("--------------------------------------\n");
- InitVehicles();
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- new PlatePossible[][] ={"AVIF", "ZISA", "VYQH", "AUBS", "IFQX", "SQUY", "QUGX", "PTRA", "BRWG", "CTID", "BTAA", "DPFA", "EAGF", "FPAH", "GJDD", "HFIQ", "JTVS", "KUBK", "LPQP", "MATA", "NXTB", "OFYC", "RESX", "TEHF", "SVPX", "VAWS", "WHFG", "XQWS", "YGJG", "ZGOA"};
- 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]=======================/
- /*new calculation = vehicleid += 126
- format(string, sizeof(string), "%s %d", PlatePossible[randdr], calculation);*/
- //===================================[TRADITIONAL LICENSE PLATE NUMBERS]================/
- format(string, sizeof(string), "%s %d", PlatePossible[randdr], vehicleid); //traditional AVIF [VEHICLE ID]
- SetVehicleNumberPlate(vehicleid, string);
- return 1;
- }
- stock InitVehicles()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- new vehicleid = GetPlayerVehicleID(i);
- //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]=======================/
- /*new calculation = vehicleid += 126
- format(string, sizeof(string), "%s %d", PlatePossible[randdr], calculation);*/
- //===================================[TRADITIONAL LICENSE PLATE NUMBERS]================/
- format(string, sizeof(string), "%s %d", PlatePossible[randdr], vehicleid); //traditional AVIF [VEHICLE ID]
- SetVehicleNumberPlate(vehicleid, string);
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment