Chat System Help
#5

Here the function i use, you can have it.

Код:
stock Name(playerid)
{
  	new name[MAX_PLAYER_NAME], stri[24];
  	GetPlayerName(playerid,name,24);
  	strmid(stri,name,0,strlen(name),24);
  	for(new i = 0; i < MAX_PLAYER_NAME; i++) { if (stri[i] == '_') stri[i] = ' '; }
  	return stri;
}
E.g.

Код:
OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "%s: %s", Name(playerid), text);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 0;
}
Reply


Messages In This Thread
Chat System Help - by ||.Rier.|| - 17.06.2010, 06:51
Re: Chat System Help - by ||.Rier.|| - 17.06.2010, 10:14
Re: Chat System Help - by RyDeR` - 17.06.2010, 10:31
Re: Chat System Help - by ||.Rier.|| - 17.06.2010, 11:00
Re: Chat System Help - by Niixie - 17.06.2010, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)