Guest User

Untitled

a guest
Dec 9th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.83 KB | None | 0 0
  1. /*
  2. ======        ===  ======         ======       ====       ========      ============
  3. =======       ===  === ===       === ===     ===  ===     ===   ====    ============
  4. ===  ===      ===  ===  ===     ===  ===     ===  ===     ===    ====   ===
  5. ===   ===     ===  ===   ===   ===   ===    ===    ===    ===     ====  =====
  6. ===    ===    ===  ===    === ===    ===    ==========    ===     ====  ========
  7. ===     ===   ===  ===     =====     ===   ============   ===     ====  =====
  8. ===      ===  ===  ===               ===   ===      ===   ===    ====   ===
  9. ===       =======  ===               ===  ===        ===  ===   ====    ============
  10. ===        ======  ===               ===  ===        ===  ========      ============
  11.  
  12. */
  13. #define FILTERSCRIPT
  14. #include <a_samp>
  15.  
  16. #if defined FILTERSCRIPT
  17.  
  18. public OnFilterScriptInit()
  19. {
  20.     print("\n--------------------------------------");
  21.     print(" Simple License Plate System by Nmader");
  22.     print("--------------------------------------\n");
  23.     InitVehicles();
  24.     return 1;
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29.     return 1;
  30. }
  31. #endif
  32.  
  33. 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"};
  34.  
  35. public OnVehicleSpawn(vehicleid)
  36. {
  37.     //NOTE: IN ORDER TO GET THREE+ DIGIT NUMBERS IN YOUR LICENSE PLATES UNCOMMENT THE LINES BELOW AND MAKE THE TRADITIONAL POSSIBILITY A COMMENT!
  38.  
  39.     new string[128];
  40.     new randdr = random(sizeof(PlatePossible));
  41.     //===================================[Three+ Digit Number Plates]=======================/
  42.     /*new calculation = vehicleid += 126
  43.     format(string, sizeof(string), "%s %d", PlatePossible[randdr], calculation);*/
  44.     //===================================[TRADITIONAL LICENSE PLATE NUMBERS]================/
  45.     format(string, sizeof(string), "%s %d", PlatePossible[randdr], vehicleid); //traditional AVIF [VEHICLE ID]
  46.     SetVehicleNumberPlate(vehicleid, string);
  47.     return 1;
  48. }
  49.  
  50. stock InitVehicles()
  51. {
  52.     for(new i = 0; i < MAX_PLAYERS; i++)
  53.     {
  54.         new vehicleid = GetPlayerVehicleID(i);
  55.         //NOTE: IN ORDER TO GET THREE+ DIGIT NUMBERS IN YOUR LICENSE PLATES UNCOMMENT THE LINES BELOW AND MAKE THE TRADITIONAL POSSIBILITY A COMMENT!
  56.         new string[128];
  57.         new randdr = random(sizeof(PlatePossible));
  58.         //===================================[Three+ Digit Number Plates]=======================/
  59.         /*new calculation = vehicleid += 126
  60.         format(string, sizeof(string), "%s %d", PlatePossible[randdr], calculation);*/
  61.         //===================================[TRADITIONAL LICENSE PLATE NUMBERS]================/
  62.         format(string, sizeof(string), "%s %d", PlatePossible[randdr], vehicleid); //traditional AVIF [VEHICLE ID]
  63.         SetVehicleNumberPlate(vehicleid, string);
  64.     }
  65.     return 1;
  66. }
Add Comment
Please, Sign In to add comment