Why isn't this working..
#5

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
pawn Код:
forward Checks();
public Checks()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
{
        if(IsPlayerInArea(i,-2931.596, -2981.811, 219.2902, -123.9217))
        {
           
            SetPlayerHealth(i,0);
 
}
   }
    }
    return 1;
}
The identitation sucks ... Hope it helped
Didn't work , but thanks


area:

pawn Код:
stock IsPlayerInArea(playerid, Float:min_x, Float:max_x, Float:min_y, Float:max_y)
{
    new Float:pos[3]; //Save his position this this triple-var.
    GetPlayerPos(playerid,pos[0],pos[1],pos[2]); //Save his X in pos[0], his Y in pos[1] and his Z in pos[2].
    if(min_x <= pos[0] && max_x >= pos[0] && min_y <= pos[1] && max_y >= pos[1]) return 1; //Checks if the player is in the area, and if so returns 1.
    return 0; //Else it returns 0.
}
Willow: I'm sure they're right, i can upload a picture if you want.

picture
uploaded:

http://imageshack.us/photo/my-images/41/useryh.png/
Reply


Messages In This Thread
Why isn't this working.. - by Jay. - 25.06.2011, 17:51
Re: Why isn't this working.. - by Willow - 25.06.2011, 17:55
Re: Why isn't this working.. - by Wesley221 - 25.06.2011, 17:56
Re: Why isn't this working.. - by sleepysnowflake - 25.06.2011, 17:57
Re: Why isn't this working.. - by Jay. - 25.06.2011, 18:00
Re: Why isn't this working.. - by Jay. - 25.06.2011, 18:24
Re: Why isn't this working.. - by gimini - 25.06.2011, 18:32
Re: Why isn't this working.. - by Jay. - 25.06.2011, 18:36
Re: Why isn't this working.. - by gimini - 25.06.2011, 18:42
Re: Why isn't this working.. - by MyLife - 25.06.2011, 18:44

Forum Jump:


Users browsing this thread: 2 Guest(s)