Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Automatic Car Repair - Fanboy's Filterscipt

$
0
0
AUTOMATIC CAR REPAIR SCRIPT
This Is My First Filterscipt Ever And Yes i Am a Noob


Q. Dafuq Is This?:
A. This Script Automatically Repairs All The Cars In The Server.


Thats All :D


DOWNLOAD:
Pastebin


Code:

/*
                  FIRST EVER FITERSCRIPT OF MINE
          Do WHAT EVER YOU WANT, PLEASE DONT REMOVE THE CREDITS!
         
                ____                  ____    ___        |    ____
          |      /\    |\  |  |  |  /  \  \  /  |  /
      |____  /  \    | \  |  |__/  |    |  \/      \____            FILTERSCRIPT
      |    /____\  |  \ |  |  \  |    |  /            \
      |    /      \  |  \|  |___|  \__/  /        ____/

*/

#define FILTERSCRIPT
#include <a_samp>

forward FixAllCar();
new FixTimer;

public OnFilterScriptInit()
{
        print("\n----------------------------------------");
        print(" Automatic Car Fix Filterscript By Fanboy ");
        print("-----------------------------------------\n");
        FixTimer = SetTimer("FixAllCar",1000,true);//After Every 1000 Milisecs, It Will Auto Repair All Cars.
}

public OnFilterScriptExit()
{
        KillTimer(FixTimer);
        return 1;
}

public FixAllCar()
{
        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        {
                if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
                {
                        new vehicleid = GetPlayerVehicleID(playerid);
                        SetVehicleHealth(vehicleid,1000.0);
                }
        }
}


Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>