30.04.2011, 03:57
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:
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.
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)) {
}