27.10.2011, 11:12
I want my admin chat should be like this "#<text>"
i'm not using /a i just using # OnPlayerText
Code
The Saving Part is Important
i copy it from LuxAdmin
This Admin system is mine not from Luxrion
i'm not using /a i just using # OnPlayerText
Code
pawn Код:
if(text[0] == '#' && PlayerInfo[playerid][pAdmin] >= 1)
{
new string[128];
new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: "white"%s",adminname,text[1]);
SendToAdmins(COLOR_RED,string);
#if ADM_CHAT_LOG == true
SaveIn("AdminChat",string);
#endif
return 0;
}
i copy it from LuxAdminThis Admin system is mine not from Luxrion

