Quick question
#6

I got another question, I'm kinda noob in scripting so..

Now I got this:

Код:
if(strcmp("/w", cmdtext, true, 2)==0)
	{
  if(strlen(cmdtext) <= 3) {
  SendClientMessage(playerid,COLOR_RED,"USAGE: /w (msg)");
  return 1;
  }
  new output[150];
	new pname[24];
	new string[128];
	GetPlayerName(playerid, pname, 24);
  strmid(output,cmdtext,2,strlen(cmdtext));
  format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  SetPlayerChatBubble(playerid, string, COLOR_WHITE, 150.0, 10000);
  printf("%s", string);
  for(new i=0;i<MAX_PLAYERS;i++)
	{
  if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) {
	{
  format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output);
  SetPlayerChatBubble(playerid, string, COLOR_WHITE, 150.0, 10000);
  SendClientMessage(i,COLOR_YELLOW,string);
  }
  }
  }
  return 1;
  }
		
	}
	return 0;
}
[img width=1024 height=640]http://i46.tinypic.com/j8kx0w.png[/img]

Text above head.. but now in the chat I want to keep (WHISPER): Name(ID) text

and in chatbubble I only want the text, how am I going to do that?

EDIT: Sorry for double post.
Reply


Messages In This Thread
Quick question - by Daan de Vries - 24.02.2010, 20:56
Re: Quick question - by dclaw - 24.02.2010, 21:00
Re: Quick question - by Daan de Vries - 24.02.2010, 21:03
Re: Quick question - by Joe Staff - 24.02.2010, 21:05
Re: Quick question - by Daan de Vries - 24.02.2010, 21:14
Re: Quick question - by Daan de Vries - 24.02.2010, 21:22
Re: Quick question - by Daan de Vries - 25.02.2010, 14:16
Re: Quick question - by VonLeeuwen - 25.02.2010, 14:49
Re: Quick question - by Daan de Vries - 25.02.2010, 14:56
Re: Quick question - by VonLeeuwen - 25.02.2010, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)