[HELP] Car Explosion
#5

Quote:
Originally Posted by Frankox
Doesnt work, how?
try

pawn Код:
forward VehicleHealth();
pawn Код:
public OnGameModeInit()
{
    SetTimer("VehicleHealth",1000, 1);
    return 1;
}
pawn Код:
public VehicleHealth()
{
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        new vehicleid = GetPlayerVehicleID(i);
        new Float:vhealth = GetVehicleHealth(vehicleid, vhealth);
       
        if(vhealth <= 30)
        {
            new Float:x, Float:y, Float:z;
            GetVehiclePos(vehicleid, x, y, z);
            SetVehicleHealth(vehicleid, 0);
            CreateExplosion(x, y, z, 6, 10.0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Car Explosion - by Frankox - 07.07.2009, 22:23
Re: [HELP] Car Explosion - by Finn - 07.07.2009, 22:42
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 22:51
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:02
Re: [HELP] Car Explosion - by happyface - 07.07.2009, 23:25
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:31
Re: [HELP] Car Explosion - by happyface - 07.07.2009, 23:36
Re: [HELP] Car Explosion - by Frankox - 07.07.2009, 23:50
Re: [HELP] Car Explosion - by Frankox - 08.07.2009, 07:04
Re: [HELP] Car Explosion - by happyface - 08.07.2009, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)