Guest User

Untitled

a guest
Jul 29th, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. /*
  2. FIRST EVER FITERSCRIPT OF MINE
  3. Do WHAT EVER YOU WANT, PLEASE DONT REMOVE THE CREDITS!
  4.  
  5. ____ ____ ___ | ____
  6. | /\ |\ | | | / \ \ / | /
  7. |____ / \ | \ | |__/ | | \/ \____ FILTERSCRIPT
  8. | /____\ | \ | | \ | | / \
  9. | / \ | \| |___| \__/ / ____/
  10.  
  11. */
  12.  
  13. #define FILTERSCRIPT
  14. #include <a_samp>
  15.  
  16. forward FixAllCar();
  17. new FixTimer;
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. print("\n----------------------------------------");
  22. print(" Automatic Car Fix Filterscript By Fanboy ");
  23. print("-----------------------------------------\n");
  24. FixTimer = SetTimer("FixAllCar",1000,true);//After Every 1000 Milisecs, It Will Auto Repair All Cars.
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29. KillTimer(FixTimer);
  30. return 1;
  31. }
  32.  
  33. public FixAllCar()
  34. {
  35. for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
  36. {
  37. if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
  38. {
  39. new vehicleid = GetPlayerVehicleID(playerid);
  40. SetVehicleHealth(vehicleid,1000.0);
  41. }
  42. }
  43. }
Add Comment
Please, Sign In to add comment