SA-MP Forums Archive
/viewpms & /viewcmds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /viewpms & /viewcmds (/showthread.php?tid=251981)



/viewpms & /viewcmds - Alex_Obando - 29.04.2011

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.


Respuesta: /viewpms & /viewcmds - Alex_Obando - 29.04.2011

Bump


Re: /viewpms & /viewcmds - BizzyD - 29.04.2011

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?


Respuesta: /viewpms & /viewcmds - Alex_Obando - 30.04.2011

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


Thanks Alex.


Re: /viewpms & /viewcmds - Hornet600 - 30.04.2011

pm me your msn i will help you


Re: /viewpms & /viewcmds - Skylar Paul - 30.04.2011

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.