read cmds - 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: read cmds (
/showthread.php?tid=66858)
read cmds -
Flo_White - 24.02.2009
hi
in my adminfilterscript admins are able to see the commands the players typed. but you can also see /register and /login.
can anyone help me that you can not see /register and /login but all the other commands??
greetings
Re: read cmds -
Mikep - 24.02.2009
You have to post the code that saves them...
Re: read cmds -
Flo_White - 25.02.2009
okay that's the code:
Код:
new string[128];
format(string, sizeof(string), "*** %s (%d) typed: %s", PlayerName(playerid),playerid,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if( (PlayerData[i][Level] >= 1) && (i != playerid) )
{
SendClientMessage(i, COLOR_GREY, string);
}
}
}
Re: read cmds -
[RP]Rav - 25.02.2009
Код:
if (strcmp(cmdtext,"/register",true,9) != 0 && strcmp(cmdtext,"/login",true,6) != 0)
{
new string[128];
format(string, sizeof(string), "*** %s (%d) typed: %s", PlayerName(playerid),playerid,cmdtext);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i))
continue;
if (PlayerData[i][Level] < 1) || i == playerid)
continue;
SendClientMessage(i, COLOR_GREY, string);
}
}
Re: read cmds -
Flo_White - 25.02.2009
thanks rav