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;
}
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; } |
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; }