AUTOMATIC CAR REPAIR SCRIPT
This Is My First Filterscipt Ever And Yes i Am a Noob
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.
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);
}
}
}