[HELP]Team Radio
#4

Weird, but if thats the case (and you did it correct) try:

Код:
if(!strcmp(cmd, "/r", true, 2))
{
	new str[128],pName[MAX_PLAYER_NAME];
	strtok(cmdtext,idx);
	tmp=strtok(cmdtext,idx);
	GetPlayerName(playerid,pName,sizeof(pName));
	format(str,sizeof(str),"[Team Radio] (%s): %s",pName,tmp);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(gTeam[i] == gTeam[playerid])
		{
			SendClientMessage(i,lightblue,str);
			return 1;
		}
	}
}
Reply


Messages In This Thread
[HELP]Team Radio - by VonLeeuwen - 31.01.2010, 15:03
Re: [HELP]Team Radio - by ray187 - 31.01.2010, 15:07
Re: [HELP]Team Radio - by VonLeeuwen - 31.01.2010, 16:40
Re: [HELP]Team Radio - by ray187 - 31.01.2010, 16:55

Forum Jump:


Users browsing this thread: 2 Guest(s)