Small problem - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small problem (
/showthread.php?tid=134140)
Small problem -
death.bringer - 15.03.2010
I have server al stunt team and I have fucked about with cars that are destroyed in that it is stupid that every blow stronger and the car is destroyed I would like to be indestructible cars to repair themselves who the stunt evolution
Re: Small problem -
ScottCFR - 15.03.2010
Just make an auto repair function
Re: Small problem -
MummyKillerSLO - 15.03.2010
Код:
public OnGameModeInit()
{
SetTimer("AutoFix",1000,1);
return 1;
}
Код:
public AutoFix()
{
for(new PlayerNumber;PlayerNumber < MAX_PLAYERS;PlayerNumber++)
{
if(IsPlayerInAnyVehicle(PlayerNumber))
{
new Float:Health;
new VehicleID = GetPlayerVehicleID(PlayerNumber);
GetVehicleHealth(VehicleID,Health);
if(Health < 750)
{
SetVehicleHealth(VehicleID,1000.0);
}
}
}
}
Re: Small problem -
death.bringer - 15.03.2010
can you do that over team viewer