Killing player in other team in the area
#1

How to kill player in the other team if they're in the exact area?

I got this

PHP код:
static gTeam[MAX_PLAYERS];
#define TEAM_MARINES 1
#define TEAM_OPFOR 2
#define TEAM_SAS 3
#define TEAM_TERO 4
public isPlayerInArea()
{
    new 
Float:XFloat:YFloat:Z
    for(new 
i=0MAX_PLAYERSi++) 
    {
        
GetPlayerPos(iXYZ); 
        if (
gTeam[i] != TEAM_MARINES && <= 2478.038 && >= 2700.614 && <= 2672.355 && >= 2846.418)
        {
        
SetPlayerHealth(i, -999999.9);
        }
        if (
gTeam[i] != TEAM_OPFOR && <= 2478.038 && >= 2700.614 && <= 2672.355 && >= 2846.418)
        {
        
SetPlayerHealth(i, -999999.9);
        }
        if (
gTeam[i] != TEAM_SAS && <= 2478.038 && >= 2700.614 && <= 2672.355 && >= 2846.418)
        {
        
SetPlayerHealth(i, -999999.9);
        }
        if (
gTeam[i] != TEAM_TERO && <= 2478.038 && >= 2700.614 && <= 2672.355 && >= 2846.418)
        {
        
SetPlayerHealth(i, -999999.9);
        }
    }

Reply


Messages In This Thread
Killing player in other team in the area - by Deviant96 - 24.04.2012, 22:12
Re: Killing player in other team in the area - by Crazymax - 24.04.2012, 22:24
Re: Killing player in other team in the area - by Deviant96 - 24.04.2012, 22:43
Re: Killing player in other team in the area - by Squirrel - 25.04.2012, 14:00

Forum Jump:


Users browsing this thread: 2 Guest(s)