Anti-Hydra fire
#10

Sometimes they don't die with '0' . It realy doesn't matter which number you use as long as its valid.

This will kill them when they use the vehicle fire button inside a hydra. (i hope not tested)

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new
            vid = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vid) == 522 && newkeys & VEHICLE_FIREWEAPON)
            SetPlayerHealth(playerid, -999999);
    }
    return 1;
}
Reply


Messages In This Thread
Anti-Hydra fire - by Gotti_ - 22.02.2011, 08:13
Re: Anti-Hydra fire - by xRyder - 22.02.2011, 08:16
Re: Anti-Hydra fire - by Gotti_ - 22.02.2011, 08:20
Re: Anti-Hydra fire - by xRyder - 22.02.2011, 08:24
Re: Anti-Hydra fire - by Gotti_ - 22.02.2011, 08:34
Re: Anti-Hydra fire - by iggy1 - 22.02.2011, 08:41
Re: Anti-Hydra fire - by Gotti_ - 22.02.2011, 08:55
Re: Anti-Hydra fire - by alpha500delta - 22.02.2011, 09:34
Re: Anti-Hydra fire - by Gotti_ - 22.02.2011, 09:38
Re: Anti-Hydra fire - by iggy1 - 22.02.2011, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)