Quote:
Originally Posted by BulletRaja
PHP код:
stock SendMessageToAdmins(color, const msg[])
{
for (new i=0; i<MAX_PLAYERS; i++)
{
if (pInfo[i][Admin] >= 1)
{
SendClientMessage(i, color, msg);
}
}
}
public OnPlayerText(playerid, text[])
{
if(text[0] == '@' && pInfo[i][Admin] >= 1)
{
new pname[128], string[120];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{47476B}(ADMIN CHAT) {FFFFFF}%s: %s", pname, text[1]);
SendMessageToAdmins(-1, string);
return 0;
}
return 0;
}
This would work perfectly
|
Why copying the code i already posted? LOL