admin chat doesn't work
#5

Quote:
Originally Posted by BulletRaja
Посмотреть сообщение
PHP код:
stock SendMessageToAdmins(color, const msg[])
{
    for (new 
i=0i<MAX_PLAYERSi++)
    {
        if (
pInfo[i][Admin] >= 1)
        {
            
SendClientMessage(icolormsg);
        }
    }
}
public 
OnPlayerText(playeridtext[])
{
    
    if(
text[0] == '@' && pInfo[i][Admin] >= 1)
    {
         new 
pname[128], string[120];
        
GetPlayerName(playeridpnamesizeof(pname));
        
format(stringsizeof(string), "{47476B}(ADMIN CHAT) {FFFFFF}%s: %s"pnametext[1]);
        
SendMessageToAdmins(-1string);
        return 
0;
    }
    return 
0;

This would work perfectly
Why copying the code i already posted? LOL
Reply


Messages In This Thread
admin chat doesn't work - by ivndosos - 07.03.2018, 12:31
Re: admin chat doesn't work - by RxErT - 07.03.2018, 13:01
Re: admin chat doesn't work - by BulletRaja - 07.03.2018, 13:13
Re: admin chat doesn't work - by AlexMSK - 07.03.2018, 13:20
Re: admin chat doesn't work - by RxErT - 07.03.2018, 15:25
Re: admin chat doesn't work - by BulletRaja - 07.03.2018, 15:31
Re: admin chat doesn't work - by AroseKhanNiazi - 07.03.2018, 22:21
Re: admin chat doesn't work - by RxErT - 08.03.2018, 15:44
Re: admin chat doesn't work - by Sew_Sumi - 08.03.2018, 20:25
Re: admin chat doesn't work - by AroseKhanNiazi - 09.03.2018, 02:45

Forum Jump:


Users browsing this thread: 2 Guest(s)