07.03.2012, 07:39
ok i have a function called "SentMessageToAdmins" the problem is
i want when i type ex.
i'm Dr.432Oc i have type /fakechat. it will sent to everyone
"Admin Dr.432Oc has use /fakechat" this will sent to all admins now
i can see it now i want to disable this for the admin who use the command
and only other admins can see this.
i want when i type ex.
i'm Dr.432Oc i have type /fakechat. it will sent to everyone
"Admin Dr.432Oc has use /fakechat" this will sent to all admins now
i can see it now i want to disable this for the admin who use the command
and only other admins can see this.
pawn Код:
stock SentMessageToAdmins(color, const string[])
{
new file[256];
format(file, sizeof(file), "RAdmin/Config/Config.ini");
if(dini_Int(file, "AdminCmdSpec") == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(PlayerInfo[i][pAdmin] > 1)
SendClientMessage(i, color, string);
}
}
return 1;
}