/viewpms & /viewcmds
#1

Can I do a command which sends a message to the admins of the commands that the other people are using and the pm's they send?

I already have the strock of the Send The Message to admins so just add it like that.

Cheerz Alex.
Reply
#2

Bump
Reply
#3

It would get kind of annoying if there is many players online. And you keep getting spammed.

Why dont save them in .log files instead?
Reply
#4

I just need it, is it possible? Can some one help me?
Or just give me a link, tutorial or something?


Thanks Alex.
Reply
#5

pm me your msn i will help you
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)