Radio Chat problem!! Will rep+
#1

Hello everyone,

Well I'm working on a gamemode, but having problems with the radio.
When you talk in radio chat, it sends the chat to everyone, not only to your team.
I will rep+ if you can help me.
This is my code:

PHP код:
CMD:r(playerid,params[])
{
if(
isnull(params)) return SendClientMessage(playeridCOLOR_RED"USAGE: /r [text] to talk in team radio");
new 
Name[MAX_PLAYER_NAME]; GetPlayerName(playeridNamesizeof(Name));
new 
string[128];
format(stringsizeof(string), "[Team Radio]%s[%d]: %s",Name,playeridparams[0]);
printf("%s"string);
for(new 
0MAX_PLAYERSi++)
{
if(
IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(iCOLOR_LGREENstring);
}
return 
1;

Reply


Messages In This Thread
Radio Chat problem!! Will rep+ - by JimmyCh - 27.06.2013, 16:18
Re: Radio Chat problem!! Will rep+ - by IRio97 - 27.06.2013, 16:37
Re: Radio Chat problem!! Will rep+ - by JimmyCh - 27.06.2013, 18:47
Re: Radio Chat problem!! Will rep+ - by JimmyCh - 28.06.2013, 17:06
Re: Radio Chat problem!! Will rep+ - by Kindred - 28.06.2013, 17:09
Re: Radio Chat problem!! Will rep+ - by Naruto_Emilio - 28.06.2013, 17:48
Re: Radio Chat problem!! Will rep+ - by JimmyCh - 28.06.2013, 21:22
Respuesta: Radio Chat problem!! Will rep+ - by CIzaquita - 28.06.2013, 21:35
Re: Radio Chat problem!! Will rep+ - by JimmyCh - 28.06.2013, 22:31
Re: Radio Chat problem!! Will rep+ - by JimmyCh - 29.06.2013, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)