Jump to content

[FS]AutoRepair v2


Guest farse

Recommended Posts

-----------------------Viata infinita la masini-------------------------

----------------------GoDCaRHeAlTh-----------------------

-----------------------By FARSE---------------------

Cum sugereaza si numele ai viata infinita la masini

In loc sa te chinui cu "/fix" din 3 in 3 sec bagi FS asta si ai scapat de griji

V2:

Include Text Draw si nu iei chiar atat de repede crash

Download Link

V2

Pastebin

Download RapidShare

download.img.php?f=2207&width=250&height=100&style=blue&display=size

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
  • 2 months later...
Guest mihai97

if(!strcmp(cmd,"/repair",true))
{
     if(IsPlayerConnected(playerid))
     {
         new veh = GetPlayerVehicleID(playerid);
         new Float:health;
         GetVehicleHealth(veh,health);
         if(IsPlayerInAnyVehicle(playerid) && health < 900)
         {
              SetVehicleHealth(veh,1000.0); // float
         }
         else return SendClientMessage(playerid,COLOR_WHITE,"Ai prea multa viata / nu esti intr-o masina.");
     }
     return 5;
}
Cred ca se referea ca atunci cand scrie o comanda sa inceapa timerul.
if(!strcmp(cmd,"/repair",true))
{
if(IsPlayerConnected(playerid))
{
SetTimerEx("AutoRepair",100,true,"d",playerid);
}
return 1;
}
forward AutoRepair(playerid);
public AutoRepair(playerid)
{
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, health);
if (health < 987)
{
SetVehicleHealth(vehicleid,1000);
}
}
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.