player chat
#2

This is an example:

Quote:

if(pInfo[playerid][Team] == USA) { //This checks if the player's team is USA(change it to your system)
format(text, SOS, "%s[%d]: %s", pInfo[playerid][Name], playerid, text); // This is the format(what will type if his team matches,that means if he is USA, it will say Player[hisid]: and the message here
SendClientMessageToAll(-1, text); //here it will send the message to all players, Use whatever color you want, -1 means white
}

Reply


Messages In This Thread
player chat - by GeneralAref - 03.12.2015, 11:51
Re: player chat - by ahmedraed - 03.12.2015, 12:43
Re: player chat - by GeneralAref - 03.12.2015, 13:14
Re: player chat - by SilverStand - 03.12.2015, 13:21
Re: player chat - by gurmani11 - 03.12.2015, 13:22
Re: player chat - by Adornil - 03.12.2015, 13:22
Re: player chat - by GeneralAref - 03.12.2015, 13:39
Re: player chat - by gurmani11 - 03.12.2015, 13:54
Re: player chat - by SilverStand - 03.12.2015, 13:55
Re: player chat - by GeneralAref - 03.12.2015, 14:02

Forum Jump:


Users browsing this thread: 2 Guest(s)