Help chat system
#8

PHP код:
public OnPlayerText(playerid,text[])
{
    new 
name[MAX_PLAYER_NAME], string[128];
    
GetPlayerName(playeridnamesizeof(name));
    
format(stringsizeof(string), "[%i] %s"playeridtext);
    
SendLocalMessage(playeridCOLOR_WHITE7,string);
    return 
0;
}
    if (
text[0] == '@')
    {
    new 
string[128];
    
format(string,sizeof(string)," %s(%d): {FFFFFF}%s.",name,playerid,text[1]);
    
SendClientMessageToAll(COLOR_WHITE,string);
    return 
0;

Reply


Messages In This Thread
Help chat system - by Langky - 03.03.2017, 09:52
Re: Help chat system - by RyderX - 03.03.2017, 10:53
Re: Help chat system - by Langky - 03.03.2017, 12:05
Re: Help chat system - by RyderX - 03.03.2017, 12:47
Re: Help chat system - by Langky - 03.03.2017, 14:16
Re: Help chat system - by haikalbintang - 03.03.2017, 15:06
Re: Help chat system - by Langky - 04.03.2017, 07:36
Re: Help chat system - by RyderX - 04.03.2017, 07:52
Re: Help chat system - by Langky - 04.03.2017, 08:03
Re: Help chat system - by Toroi - 04.03.2017, 14:52

Forum Jump:


Users browsing this thread: 6 Guest(s)