Radio Chat problem!! Will rep+
#2

pawn Код:
CMD:r(playerid,params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
new string[128];
format(string, sizeof(string), "[Team Radio]%s[%d]: %s",Name,playerid, params[0]);
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid])
{
SendClientMessage(i, COLOR_LGREEN, string);
}
}
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: 2 Guest(s)