Help || Dont see your command <<
#1

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
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)