Local chat
#3

Quote:
Originally Posted by NicholasA
Посмотреть сообщение
How can I make it so that my server has local chat?
Something like this:

Код:
public OnPlayerText(playerid, text[])
{
	new Float:px,Float:py,Float:pz,playername[32];
	GetPlayerPos(playerid,px,py,pz);
	GetPlayerName(playerid,playername,32);
	for(new c=0; c<MAX_PLAYERS; c++){
	    if(IsPlayerInRangeOfPoint(c,15.0,px,py,pz)) {
	        format(textStr,"%s: %s",playername,text);
			SendClientMessage(c,0xFEFEFEFF,textStr);
			return 0;
		} else return 0;
	}
	return 1;
}
Reply


Messages In This Thread
Local chat - by NicholasA - 20.04.2013, 09:12
Re: Local chat - by MattyG - 20.04.2013, 09:18
Re: Local chat - by Narushi - 20.04.2013, 09:21
Re: Local chat - by Ciandlah - 20.04.2013, 09:27
Re: Local chat - by NicholasA - 20.04.2013, 09:28
Re: Local chat - by Ciandlah - 20.04.2013, 09:35

Forum Jump:


Users browsing this thread: 2 Guest(s)