Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 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);
- }
- }
- }
Add Comment
Please, Sign In to add comment