Quote:
Originally Posted by jameskmonger
try this:
pawn Код:
public isPlayerInArmyZone() { new Float:X, Float:Y, Float:Z; //We use this to store player position for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i" { if(gTeam[i] != TEAM_ARMY) { GetPlayerPos(i, X, Y, Z); if (X <= -914 && X >= 2570 && Y <= 1106 && Y >= 2730) { SetPlayerHealth(i,0); SendClientMessage(i,0xFF0000AA,"Your are not allowed to be in this area"); } } } return 1; }
|
You see the change above in the script
Edit: did you forward the public ?