anti-drive by
#1

i wanna make a anti-drive by system and i make this
Код:
PUBLIC: OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
     if(GetPlayerState(Shooter) == 3)
	{
	    new Float:vhealth;
		new veh = GetPlayerVehicleID(Target);
		if(GetVehicleHealth(veh, vhealth) <= 550)
		{
	 		SetVehicleHealth(veh, 550);
	   		TogglePlayerControllable(Shooter, 0);
	   		SetTimerEx("ResetFreeze", 10000, false, "i", Shooter);
			SendClientMessage(Shooter,COLOR_RED,"Drive-By: You`re freeze for 10 seconds !");
		}
	}
        return 1;
But this works only when hit player, i wanna make this works when shoot in vehicle and that vehicle health is <= 550.
What to do ?
Reply


Messages In This Thread
anti-drive by - by jamal1992 - 08.07.2014, 22:23
Re: anti-drive by - by Vince - 08.07.2014, 22:57
Re: anti-drive by - by nmader - 08.07.2014, 23:11
Re: anti-drive by - by jamal1992 - 09.07.2014, 00:01
Re: anti-drive by - by jamal1992 - 10.07.2014, 12:04
Re: anti-drive by - by jamal1992 - 15.07.2014, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)