/viewpms & /viewcmds
#6

Here's what I would do -

1: Create a stock that sends a message to all online administrators.

2: Get an administrator check, something like:

pawn Код:
stock IsAuthorized(minlevel)
{
    for(new i; i < MAX_PLAYERS; i++) {
        if(PVar[playerid][AdministratorLevel] >= minlevel) { //Your Administrative variable can be replaced here
            return true;
        }
        else return false;
    }
    return 1;
}

//Example:
if(IsAuthorized(1)) {
}
3: Check if they're an administrator, and send the message to them; add it under every command applicable. (Or if you use OnPlayerCommandText, put it IN the callback itself.
Reply


Messages In This Thread
/viewpms & /viewcmds - by Alex_Obando - 29.04.2011, 16:10
Respuesta: /viewpms & /viewcmds - by Alex_Obando - 29.04.2011, 16:31
Re: /viewpms & /viewcmds - by BizzyD - 29.04.2011, 16:35
Respuesta: /viewpms & /viewcmds - by Alex_Obando - 30.04.2011, 03:38
Re: /viewpms & /viewcmds - by Hornet600 - 30.04.2011, 03:47
Re: /viewpms & /viewcmds - by Skylar Paul - 30.04.2011, 03:57

Forum Jump:


Users browsing this thread: 1 Guest(s)