TeamChat help please
#1

I got a problem with Team Chat.. i dont know what is wrong?
Код:
public OnPlayerCommandText(playerid, cmd[])
{
	if(strcmp(cmd, "/f", true, 0)==0)
	{
	    new string[128];    GetPlayerName(playerid, string, sizeof(string));
	    format(string, sizeof(string), "*TeamChat %s:  %s", string, text[1]);
		printf("%s", string);

	    for(new i = 0; i < MAX_PLAYERS; i++)
		{
		 	if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
 		}
		return 0;
	}

	return 1;
}
Reply


Messages In This Thread
TeamChat help please - by pandaeyez - 30.10.2011, 15:12
Re: TeamChat help please - by Kingunit - 30.10.2011, 15:13
Re: TeamChat help please - by pandaeyez - 30.10.2011, 15:15
Re: TeamChat help please - by Kostas' - 30.10.2011, 15:16
Re: TeamChat help please - by pandaeyez - 30.10.2011, 15:24
Re: TeamChat help please - by Edvin - 30.10.2011, 15:32
Re: TeamChat help please - by pandaeyez - 30.10.2011, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)