SA-MP Forums Archive
[FilterScript] Automatic Car Repair - Fanboy's Filterscipt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Automatic Car Repair - Fanboy's Filterscipt (/showthread.php?tid=638291)



Automatic Car Repair - Fanboy's Filterscipt - Hussainkahloon96 - 29.07.2017

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

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);
		}
	}
}



Re: Automatic Car Repair - Fanboy's Filterscipt - JustMe.77 - 29.07.2017

Bad release.
If you want to earn reputation points, don't ask for it and release something well scripted, which is useful for the community and not made within a minute.
-1 star.


Re: Automatic Car Repair - Fanboy's Filterscipt - R4nd4ll - 29.07.2017

Quote:
Originally Posted by JustMe.77
View Post
Bad release.
If you want to earn reputation points, don't ask for it and release something well scripted, which is useful for the community and not made within a minute.
-1 star.
Woah woah woah !
This guy is new, and it's our job to teach him what to do and what Not.

So, i appreciate that he shared this eith the community.

+Rep


Re: Automatic Car Repair - Fanboy's Filterscipt - Banditul18 - 29.07.2017

PHP Code:
public FixAllCar()
{
    for(new 
GetVehiclePoolSize(); <= ji++)
        
RepairVehicle(i);

Why not like this? Its useless to loop thought all players to just repairs the cars, why not loop thought cars?


Re: Automatic Car Repair - Fanboy's Filterscipt - Variable™ - 29.07.2017

Quote:
Originally Posted by H4RR1s
View Post
Woah woah woah !
This guy is new, and it's our job to teach him what to do and what Not.

So, i appreciate that he shared this eith the community.

+Rep
Yeah, I see it nice that you give points to useless craps to get points in return for being capable of posting a server advertisement. That won't work out buddy, already obvious.

OT: Giving 1-star to this release is pointless, it shouldn't be ranked at all. I wish I could give negative points, unfortunately, not possible.

You people think you can earn reputation by posting shits, sharing things you don't even know anything about and asking for points for the awesomely done work done.


Re: Automatic Car Repair - Fanboy's Filterscipt - Hussainkahloon96 - 30.07.2017

Quote:
Originally Posted by JustMe.77
View Post
Bad release.
If you want to earn reputation points, don't ask for it and release something well scripted, which is useful for the community and not made within a minute.
-1 star.
Removed it -_- Nigga


Re: Automatic Car Repair - Fanboy's Filterscipt - Hussainkahloon96 - 30.07.2017

Quote:
Originally Posted by Variable™
View Post
Yeah, I see it nice that you give points to useless craps to get points in return for being capable of posting a server advertisement. That won't work out buddy, already obvious.

OT: Giving 1-star to this release is pointless, it shouldn't be ranked at all. I wish I could give negative points, unfortunately, not possible.

You people think you can earn reputation by posting shits, sharing things you don't even know anything about and asking for points for the awesomely done work done.
FFS M New To Scripting Man, aig naog madsojg adjg ad gfadsg adga


Re: Automatic Car Repair - Fanboy's Filterscipt - C4rtm4n - 01.08.2017

This is very easy to do really should not turn into a filterscript


Re: Automatic Car Repair - Fanboy's Filterscipt - Astralis - 02.08.2017

Quote:
Originally Posted by C4rtm4n
View Post
This is very easy to do really should not turn into a filterscript
More into tutorials.


Re: Automatic Car Repair - Fanboy's Filterscipt - TopShooter2 - 02.08.2017

Quote:
Originally Posted by Astralis
View Post
More into tutorials.
More into Snippets.


Re: Automatic Car Repair - Fanboy's Filterscipt - Barnwell - 02.08.2017

Not bad 6/10