*** This topic title sucks, "help me" is not descriptive.
#10

Okay i got this:
pawn Код:
for(new c = 0; c < MAX_PLAYERS; c++)
    {
        new vehicleid = GetPlayerVehicleID(c);
        if(IsPlayerInAnyVehicle(c))
        {
            if(GetVehicleModel(vehicleid) == 515)
            {
                new vtrailer = GetVehicleTrailer(vehicleid);
                if(GetVehicleModel(vtrailer) == 584)
                {
                    new Float:health;
                    GetVehicleHealth(vtrailer, health);//vtrailer = trailer
                    SetVehicleHealth(vtrailer, health-1);//vtrailer = trailer
                }

            }
        }

    }
It sure does something. When i attach roadtrain to a xoomer it removes 1 HP but it needs to go all the way to 0... how to make it do that?
Reply


Messages In This Thread
*** This topic title sucks, "help me" is not descriptive. - by thimo - 04.11.2012, 12:19
Re: Help with something - by iGetty - 04.11.2012, 12:38
Re: Help with something - by Danyal - 04.11.2012, 12:46
Re: Help with something - by thimo - 04.11.2012, 12:58
Re: Help with something - by Danyal - 04.11.2012, 13:13
Re: Help with something - by thimo - 04.11.2012, 13:27
Re: Help with something - by ExpertSahil - 04.11.2012, 13:32
Re: Help with something - by tyler12 - 04.11.2012, 13:36
Re: Help with something - by thimo - 04.11.2012, 13:39
Re: Help with something - by thimo - 04.11.2012, 13:47

Forum Jump:


Users browsing this thread: 3 Guest(s)