Admin Chat - Lux Admin
#1

Well ' Ill be fast

It looks like this

pawn Код:
if(text[0] == '#' && AccInfo[playerid][Level] >= 1)
    {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
        MessageToAdmins(green,string);
        #if ADM_CHAT_LOG == true
        SaveIn("AdmChatLog",string);
        #endif
        return 0;
    }
And to use it is

# Test

With "#" in front.

I tried but I couldn't to replace # with /ac.

Thanks in advance for who knows.
Reply
#2

Try this

Quote:

dcmd_ac(playerid,params[])
{
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
MessageToAdmins(green,string);
#if ADM_CHAT_LOG == true
SaveIn("AdmChatLog",string);
#endif
return 0;
}

dont forget to set level
Reply
#3

Quote:
Originally Posted by [WoF]Sonny
Посмотреть сообщение
Try this



dont forget to set level
Fail.

Код:
dcmd_ac( playerid, params[ ] )
{
	if( AccInfo[ playerid ][ Level ] == 0 )
		return SendClientMessage( playerid, -1, "ERROR: You are not administrator level 1+ !" );

	new string[ 128 ]; 
	GetPlayerName( playerid, string, 128 );
	format( string, 128, "Admin Chat: %s: %s", string, params );
	MessageToAdmins( green, string );
	#if ADM_CHAT_LOG == true
	SaveIn( "AdmChatLog", string );
	#endif
	return 1;
}
Reply
#4

Fail.


I bet he can without your "help" man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)