14.08.2011, 07:44
on the top of your script add
then
anywhere:
Код:
forward AreaCheck;
Код:
public OnGameModeInit( ) { SetTimer( "AreaCheck", 1000, 1 ); return 1; }
Код:
public AreaCheck(); { for(new i=0; i<MAX_PLAYERS; i++ ) { if(IsPlayerConnected(i) && IsPlayerInArea(i, 1097.29, 1177.29, 1204.25, 1354.55) && !IsPlayerAdmin(i)) // CHECK: If the player is a admin, if the player is in the area { // He's not. SendClientMessage(i, YOURCOLOR, "You are not allowed to enter the ADMIN area."); /* Do with him whatever you want */ } } }