Anti Deathmatch system
#6

Yes, that example should work fine. Another example:

pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, weaponid, bodypart)
{
      if(IsPlayerInRangeOfPoint(playerid, safeZoneRange, safeZoneX, safeZoneY, safeZoneY, safeZoneZ))
      {
             new Float: health;
             GetPlayerHealth(playerid, health+amount);
             SetPlayerHealth(playerid, health);
             return 0;
      }
      return 1;
}
P:S: I miss the old PAWN BBCode syntax
Reply


Messages In This Thread
Anti Deathmatch system - by FunnyBear - 16.02.2015, 23:21
Re: Anti Deathmatch system - by Abagail - 16.02.2015, 23:31
Re: Anti Deathmatch system - by FunnyBear - 16.02.2015, 23:36
Re: Anti Deathmatch system - by Abagail - 16.02.2015, 23:42
Re: Anti Deathmatch system - by FunnyBear - 16.02.2015, 23:48
Re: Anti Deathmatch system - by Abagail - 16.02.2015, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)