Quote:
Originally Posted by Gappy
pawn Код:
forward PlayerInAreaCheck(); pubic PlayerInAreaCheck() { for(new i = 0, i < MAX_PLAYERS; i++) { 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, -999999.9); } } } return 1; }
OnGameModeInIt() { SetTimer("PlayerInAreaCheck", 1000, 1); return 1; }
At the bottom of your script
pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1; return 0; }
try that
|
You better learn to script before misleading other people.