/r command not working
#2

try this

Код:
dcmd_r(playerid, params[])
{
	new text[256], name[60];
	if(sscanf(params, "s", text)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /r [text]");
	else
	{
	  new string[322];
	  GetPlayerName(playerid, name, 60);
	  format(string, 322, "(%s) (Radio): %s", name, text);
	  for(new i=0;i<MAX_PLAYER;i++)
	  {
	    if(IsPlayerConnected(i))
	    {
	    	if(gTeam[i] == gTeam[playerid])
	    	{
	    	  SendClientMessage(i, COLOR_GREEN, string);
				}
			}
		}
	}
	return 1;

}
Reply


Messages In This Thread
/r command not working - by bristan - 23.02.2010, 02:11
Re: /r command not working - by Flake. - 23.02.2010, 04:47
Re: /r command not working - by [LSR]State_Trooper - 23.02.2010, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)