problem with chat?
#3

Код:
public OnPlayerText(playerid, text[])
{
	if(text[0] == ';')
	{
		new string[256],name[24];
		GetPlayerName(playerid,name,24);
		format(string,256,"[TEAM] %s: %s",name,text[1]);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(gTeam[i] == gTeam[playerid])
				SendClientMessage(i, GetPlayerColor(playerid), string);
			}
		}
		return 0;
	}
	return 1;
}
Reply


Messages In This Thread
problem with chat? - by Face9000 - 05.09.2010, 22:36
Re: problem with chat? - by [L3th4l] - 05.09.2010, 22:41
Re: problem with chat? - by Face9000 - 05.09.2010, 22:43
Re: problem with chat? - by Face9000 - 05.09.2010, 22:46
Re: problem with chat? - by Face9000 - 05.09.2010, 23:27

Forum Jump:


Users browsing this thread: 1 Guest(s)