zombie spawn protection
#2

Hello sanamalik400,

I've got this code for you,

PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
     if (
IsPlayerInRangeOfPoint(Target2.0the x pos of the player spawn pointsyz)) 
     { 
         new 
Float:health;
         
GetPlayerHealth(Shooter,health);
         
SetPlayerHealth(Shooterhealth-5); // It will decrease 5 hp at each shoot
    
return 1;

For the "OnPlayerShootPlayer", it has an include, you have to download it : https://sampforum.blast.hk/showthread.php?pid=937824#pid937824

- KillerDVX.
Reply


Messages In This Thread
zombie spawn protection - by sanamalik400 - 12.09.2015, 23:07
Re : zombie spawn protection - by KillerDVX - 12.09.2015, 23:30
Re: zombie spawn protection - by sanamalik400 - 12.09.2015, 23:34
Re: zombie spawn protection - by sanamalik400 - 13.09.2015, 11:34
Re: zombie spawn protection - by sanamalik400 - 13.09.2015, 11:57
Re: zombie spawn protection - by ax1 - 13.09.2015, 13:12
Re: zombie spawn protection - by X337 - 13.09.2015, 13:23
Re: zombie spawn protection - by ax1 - 13.09.2015, 13:25
Re : zombie spawn protection - by KillerDVX - 13.09.2015, 15:51
Re: zombie spawn protection - by sanamalik400 - 13.09.2015, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)