Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward Aggiusta();
- new FixTimer;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Auto riparazione veicoli By rio ");
- print("--------------------------------------\n");
- FixTimer = SetTimer("Aggiusta",1000,true);/*ogni 1000 millesecondi i veicoli si riparano :D*/
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(FixTimer);
- return 1;
- }
- public Aggiusta()
- {
- 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