20.08.2009, 09:51
Quote:
Originally Posted by Gappy
Why? What's wrong with it? 0.o
Apart from the fact I wrote pubic instead of public. and forgot public in OnGameModeInIt I wrote it in a rush. |
Stay away from this topic please, you just lie and mislead him.
Dice, pay attention to what you're doing. You're having mistakes with playerid and i (the loop)
forward PlayerInAreaCheck(playerid);
pawn Код:
pubic PlayerInAreaCheck(playerid)
{
for(new i = 0, i < MAX_PLAYERS; i++) // here, PlayerInAreaCheck is supposed to be for playerid, so why would you make a loop?
{
if(!IsPlayerConnected(playerid)) continue;
if(IsPlayerInArea(i, 1543, 1608, -1634, -1602))
{
if(gTeam[i] == TEAM_CIVILIAN)
{
GameTextForPlayer(playerid,"~y~ You Died For Being On Police Property",5000,5);
SetPlayerHealth(i, -999999.9);
}
}
}
return 1;
}