Problem with, Health Drain if Player is not near point + message
#3

pawn Code:
public isPlayerInArea() // change "forward isPlayerInArea(playerid);", to "forward isPlayerInArea();"
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 700.0, -118.3844, 1151.4380, 19.5938)) // center of Fort Carson
        {
            return 1; // does nothing if player is in area
        }
        else
        {
            new Float:dhealth;
            GetPlayerHealth(i, dhealth);
            SetPlayerHealth(i, dhealth - 1.0);
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)