Armored Cars
#8

Quote:
Originally Posted by Deniz1467
Посмотреть сообщение
I put it like that, I think I cant put it truely.

pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
    if(GetVehicleModel(i) == 596 || GetVehicleModel(i) == 597 || GetVehicleModel(i) == 598)
    {
        SetVehicleHealth(i, 3000);
        print("Armored Cars Loaded.");
    }
}
    new
You also need to make sure that the vehicles for your server are being loaded first, before performing that function. If the vehicles aren't loaded, it can't set the health, because the cars aren't there. So put it after the vehicle load function.
Reply


Messages In This Thread
Armored Cars - by Deniz1467 - 01.02.2014, 07:43
Re: Armored Cars - by Deniz1467 - 01.02.2014, 08:54
Re: Armored Cars - by J4mmyHD - 01.02.2014, 09:03
Re: Armored Cars - by Deniz1467 - 02.02.2014, 07:05
Re: Armored Cars - by Don_Cage - 02.02.2014, 07:10
Re: Armored Cars - by Deniz1467 - 02.02.2014, 07:25
Respuesta: Armored Cars - by Samuel6 - 02.02.2014, 15:49
Re: Armored Cars - by Treyvan - 02.02.2014, 16:29
Respuesta: Re: Armored Cars - by Samuel6 - 03.02.2014, 00:13
Re: Respuesta: Re: Armored Cars - by Don_Cage - 03.02.2014, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)