Help with view all commands! [solved] - 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: Help with view all commands! [solved] (
/showthread.php?tid=131744)
Help with view all commands! [solved] -
leapfish - 04.03.2010
Код:
//================ [ Read Comamands ] ===========================//
if(ServerInfo[ReadCmds] == 1)
{
new string[128];
format(string, sizeof(string), "[CMD]*** %s (%d) typed: %s", ppName(playerid),playerid,cmdtext);
for(new q = 0; q < MAX_PLAYERS; q++) {
if(IsPlayerConnected(q)) {
if( (PlayerInfo[i][pAdmin] >= 5) && (q != playerid) ) {
SendClientMessage(q, COLOR_GREY, string);
}
}
}
}
I want this command to makes admins lvl5+ available to see ALL commands player writes..
This code is not working, please help..!!!!!!
Re: Help with view all commands! -
afei - 04.03.2010
Uhm did you set 'ServerInfo[ReadCmds]' to 1 before trying to read the commands.. ?
Guess 'PlayerInfo[
i][pAdmin]' is supposed to be 'PlayerInfo[
q][pAdmin]'
Re: Help with view all commands! -
leapfish - 04.03.2010
Lol thanks it's working now!