[HELP]Team Radio
#1

Hey all,

I made a kind of team radio xD and it fails...
When I type /r hellooooo it shows up as '[Team Radio] (VonLeeuwen):'

This is my script

Код:
	if(!strcmp(cmd, "/r", true, 2))
	{
		new str[128],str1,pName[MAX_PLAYER_NAME];
		tmp = strtok(cmdtext,idx);
		str1 = strval(tmp);
		GetPlayerName(playerid,pName,sizeof(pName));
		format(str,sizeof(str),"[Team Radio] (%s): %s",pName,str1);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
		  if(gTeam[i] == gTeam[playerid])
		  {
		    SendClientMessage(i,lightblue,str);
		    return 1;
			}
		}
	}
What did I do wrong?
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: 1 Guest(s)