20.08.2009, 09:50
woops
Edit: I know my mistakes, I just copied the above code and changed the timer, but I then saw a few errors
pawn Код:
forward PlayerInAreaCheck(playerid);
pubic PlayerInAreaCheck(playerid)
{
for(new i = 0, max = GetMaxPlayers(); i < max; i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInArea(i, 1543, 1608, -1634, -1602))
{
if(gTeam[i] == TEAM_CIVILIAN)
{
GameTextForPlayer(i,"~y~ You Died For Being On Police Property",5000,5);
SetPlayerHealth(i, 0.0);
}
}
}
return 1;
}
public OnGameModeInit()
{
SetTimer("PlayerInAreaCheck", 1000, 1);
return 1;
}