Help chat system
#10

Код:
public OnPlayerText(playerid,text[])
{
	new pname[MAX_PLAYER_NAME], stringOs[128];
	GetPlayerName(playerid, pname, sizeof(pname));
	if (!strcmp(text,"@",true,1))
	{
		strdel(text,0,1);
		format(stringOs,sizeof(stringOs)," %s(%d): {FFFFFF}%s.",pname,playerid,text);
		SendClientMessageToAll(COLOR_WHITE,stringOs);
		return 0;
	}
	format(string, sizeof(string), "%s: %s", pname, text);
	SendLocalMessage(playerid, COLOR_WHITE, 7,stringOs);
	return 0;
}
Also, show us your SendLocalMessage function, please.
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: 1 Guest(s)