New Text way -
Mr.Mafia - 12.02.2010
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.
Re: New Text way -
Joe Staff - 12.02.2010
SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime)
Re: New Text way -
Mr.Mafia - 12.02.2010
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."
Re: New Text way -
truffes - 12.02.2010
You got to reply with the Errors, we can't help you like that.
Make sure you got the latest SA-MP includes.
Re: New Text way -
Mr.Mafia - 12.02.2010
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);
}
}
Re: New Text way -
truffes - 12.02.2010
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?!
Re: New Text way -
Mr.Mafia - 12.02.2010
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.
Re: New Text way -
BMUK - 12.02.2010
pawn Код:
public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, COLOR_ORANGE, 20.0, 5000);
return 1;
}
Re: New Text way -
Mr.Mafia - 12.02.2010
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.
Re: New Text way -
Onyx09 - 12.02.2010
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