multi functions onplayertext
#3

PHP код:
public OnPlayerText(playeridtext[])
{
    new 
chat[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    if(
IsPlayerAdmin(playerid) && text[0] == '#')
    {
        
format(chatsizeof(chat), "[ADMIN CHAT] %s(%d): %s"pNameplayeridtext);
        
SendMessageToAdmins(chat);
        return 
0;
    }
    
format(chatsizeof(chat), "(%d): {EBFF00}%s{FFFFFF}"playeridtext);
    
SendPlayerMessageToAll(playeridchat);
    return 
0;

In case this didn't work, Show me the function 'SendMessageToAdmins'.
Reply


Messages In This Thread
multi functions onplayertext - by rakinz - 28.01.2017, 14:23
Re: multi functions onplayertext - by IceBilizard - 28.01.2017, 14:26
Re: multi functions onplayertext - by oMa37 - 28.01.2017, 14:31
Re: multi functions onplayertext - by rakinz - 28.01.2017, 14:33
Re: multi functions onplayertext - by rakinz - 28.01.2017, 14:35
Re: multi functions onplayertext - by rakinz - 28.01.2017, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)