asay command doubled message
#6

Quote:
Originally Posted by Mike861
Посмотреть сообщение
I assume its only gonna send messages to admins, this should send the message to everyone.
PHP код:
SendMessageToPlayers(text[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
PlayerInfo[i][pAdmin] < 1//if not admin
        
{
            
SendClientMessage(i, -1,text); //send message in white (-1) change the color to you'rs
        
}
        if(
PlayerInfo[i][pAdmin] == 1)
        {
            
SendClientMessage(iCOLOR_LEVEL1,text);
        }
        else if(
PlayerInfo[i][pAdmin] == 2)
        {
              
SendClientMessage(iCOLOR_LEVEL2,text);
        }
        else if(
PlayerInfo[i][pAdmin] == 3)
        {
            
SendClientMessage(iCOLOR_LEVEL3,text);
        }
    }
    return 
1;

Reply


Messages In This Thread
asay command doubled message - by Mike861 - 04.07.2018, 13:52
Re: asay command doubled message - by Exhibit - 04.07.2018, 13:57
Re: asay command doubled message - by Slawi - 04.07.2018, 14:07
Re: asay command doubled message - by Banditul18 - 04.07.2018, 14:08
Re: asay command doubled message - by Mike861 - 04.07.2018, 14:09
Re: asay command doubled message - by Lokii - 04.07.2018, 14:32
Re: asay command doubled message - by Calisthenics - 04.07.2018, 14:46
Re: asay command doubled message - by Slawi - 04.07.2018, 14:49
Re: asay command doubled message - by Mike861 - 04.07.2018, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)