[HELP] Admin area
#3

on the top of your script add

Код:
forward AreaCheck;
then

Код:
public OnGameModeInit( )
{
   SetTimer( "AreaCheck", 1000, 1 );
   return 1;
}
anywhere:

Код:
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 */
        }
    }
}
Reply


Messages In This Thread
[HELP] Admin area - by Kalzifer - 14.08.2011, 07:36
Re: [HELP] Admin area - by Grim_ - 14.08.2011, 07:40
Re: [HELP] Admin area - by RowdyrideR - 14.08.2011, 07:44
Re: [HELP] Admin area - by Kalzifer - 14.08.2011, 07:46
Re: [HELP] Admin area - by RowdyrideR - 14.08.2011, 07:49
Re: [HELP] Admin area - by Grim_ - 14.08.2011, 07:55
Re: [HELP] Admin area - by Kalzifer - 14.08.2011, 07:58
Re: [HELP] Admin area - by Kalzifer - 14.08.2011, 08:00
Re: [HELP] Admin area - by RowdyrideR - 14.08.2011, 08:10
Re: [HELP] Admin area - by Wesley221 - 14.08.2011, 08:30

Forum Jump:


Users browsing this thread: 1 Guest(s)