New Text way
#1

Hello,

I have seen some kinda text way in game in some random server. It was like, When the player types something, in the main chat. The text shows in the main text thing and it also appears above the player's name, Can anyone tell me. How i can do that in a roleplay script? Like if i type something in ic chat, It shows above my name.
Reply
#2

SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime)
Reply
#3

yea but how i willl add that into a IC Chat thing, Its kinda annoying when you get alot of errors, like "WOW THATS NO! TOTALLY NO. HERE ALOT OF ERRRORS."
Reply
#4

You got to reply with the Errors, we can't help you like that.
Make sure you got the latest SA-MP includes.
Reply
#5

Like this?
Код:
if(PlayerInfo[playerid][pMaskuse] == 1)
				{
					format(string, sizeof(string), "Stranger Says: %s", result);
					ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
					ApplyAnimation(playerid,"GANGS","prtial_gngtlkF",4.1,0,1,1,1,1);
					SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 10000);
				}
				else
			  {
		  		format(string, sizeof(string), "%s Says: %s", sendername, result);
		  		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		  		ApplyAnimation(playerid,"GANGS","prtial_gngtlkF",4.1,0,1,1,1,1);
		  		SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 10000);
				}
			}
Reply
#6

Okay I won't just make it for you so you will notice where your mistake is.

Look:
Код:
format(string, sizeof(string), "%s Says: %s", sendername, result);
See the string?
Код:
SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 10000);
Where the hell is the string in there?!
Reply
#7

U wont make it for me? Dude, Im here asking for help. If you dont wanna help. Dont bother to show ur attitude here... Or you dont know how to script that.

Anyways, Download LA-RP script and check out what is it.
Reply
#8

pawn Код:
public OnPlayerText(playerid, text[])
{
  SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 5000);

  return 1;
}
Reply
#9

Quote:
Originally Posted by BMUK
pawn Код:
public OnPlayerText(playerid, text[])
{
  SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 5000);

  return 1;
}
that doesnt work in Roleplay script.
Reply
#10

well your saying if people dont want help they cant come witn and attitude well they allready gave you the right
answer on how to do it kid and your saying it wont work your a newbie and your telling xperts it dont work?

that will show the name above the players head and also in the screen since you havent remove the other way -_-
anyways learn some basics first then youll know how to do it
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)