Small problem
#1

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
Reply
#2

Just make an auto repair function
Reply
#3

Код:
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);
			}
		}
	}
}
Reply
#4

can you do that over team viewer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)