20.06.2013, 01:17
I will give you a code with symbols (In the second code you used different admin variables so i will use the admin variables of the second code..)
pawn Код:
if(text[0] == '*' && AccInfo[playerid][pVip] >= 1)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"|ChatVip| %s: %s",string,text[1]);
MessageToPlayerVIP(0xDC686BAA,string);
SaveIn("ChatVipLog",string);
return 0;
}
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);
GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"9Admin Chat: %s: %s",string,text[1]);
IRC_GroupSay(gGroupID2, IRC_ADMINCHANNEL, string);
#if ADM_CHAT_LOG == true
SaveIn("AdmChatLog",string);
#endif
return 0;
}
if(text[0] == '}' && AccInfo[playerid][Level] >= 2)
{
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, 128, "Mod Chat: %s: %s", string, text[1]);
MessageToAdmins(green, string);
new name[128];
new string2[128];
GetPlayerName(playerid, name, sizeof(name));
format(string2, 128, "IRC Mod Chat: %s: %s", name, text[1]);
IRC_GroupSay(gGroupID2, IRC_ADMINCHANNEL, string2);
#if ADM_CHAT_LOG == true
SaveIn("AdminChatLog", string2);
return 0;
}
if(text[0] == '{' && AccInfo[playerid][Level] >= 7)
{
new oname[25];
GetPlayerName(playerid, oname, sizeof(oname));
new ostirng[128];
format(ostring, 128, "Owner Chat: %s: %s", oname, text[1]);
MessageToAdmins(green, ostring);
}