Help || Dont see your command << - 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)
+--- Thread: Help || Dont see your command << (
/showthread.php?tid=338243)
Help || Dont see your command << -
lonako45 - 29.04.2012
I make if player write /sdfsdf /race /teleport /blabla
the admins see that
PHP код:
new name[MAX_PLAYERS];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"[LoG] - %s [#%d]: %s",name,playerid,cmdtext);
SendAdminsMessage(0x999999ff,string);
But I see my command !! How do I do I see other commands and no my command ?
HELP
Re: Help || Dont see your command << -
JaKe Elite - 29.04.2012
pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(playerid))
if(i != playerid)
{
format(string,sizeof(string),"[LoG] - %s [#%d]: %s",name,playerid,cmdtext);
SendAdminsMessage(0x999999ff,string);
}
}
seriously why your name is MAX_PLAYERs you creating a global variables
use MAX_PLAYER_NAME i edit it.