[SOLVED] LS-RP's /ame command -
FreddeN93 - 27.04.2013
Hi,
Anyone out there know how to create a command, which LS-RP use, (/ame). The command is an alternative way to use /me, the text appears above the players head.
Look at the player named Randall_Carranza. He is using the /ame command to display his actions above his head.
http://i.imgur.com/Y4GU2iM.png
Re: LS-RP's /ame command -
Y2Jerichoholic - 27.04.2013
I'm looking too :O
Re: LS-RP's /ame command -
zDivine - 27.04.2013
pawn Код:
SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime);
Re: LS-RP's /ame command -
FreddeN93 - 27.04.2013
Quote:
Originally Posted by zDivine
pawn Код:
SetPlayerChatBubble(playerud, text[], color, Float:drawdistance, expiretime);
|
I have been trying to experiment with this, but no success. Do you think you could develop a command?
Re: LS-RP's /ame command -
RajatPawar - 27.04.2013
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
pawn Код:
CMD:me(playerid, params[])
{
new string[30];
if(!sscanf(params, "s[30]", string))
{
SetPlayerChatBubble(playerid, string, 0xFF0000FF, 100.0, 5000);
}
else return SendClientMessage(playerid, -1, "USAGE: /me (string)");
}
Re: LS-RP's /ame command -
Y2Jerichoholic - 27.04.2013
Quote:
Originally Posted by Rajat_Pawar
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
pawn Код:
CMD:me(playerid, params[]) { new string[30]; if(!sscanf(params, "s[30]", string)) { SetPlayerChatBubble(playerid, string, 0xFF0000FF, 100.0, 5000); } else return SendClientMessage(playerid, -1, "USAGE: /me (string)"); }
|
This is /me .. we search /ame !
Re: LS-RP's /ame command -
Skyrise - 27.04.2013
Quote:
Originally Posted by Y2Jerichoholic
This is /me .. we search /ame !
|
You obviously didn't look at the code. It is /ame.
Re: LS-RP's /ame command -
RajatPawar - 27.04.2013
Quote:
Originally Posted by Y2Jerichoholic
This is /me .. we search /ame !
|
People, these days.
*Humph.*
This is the same goddamn command, the name's different! Jesus!
Re: LS-RP's /ame command -
zDivine - 27.04.2013
Quote:
Originally Posted by Y2Jerichoholic
This is /me .. we search /ame !
|
Just change the command name to /ame.
Re: LS-RP's /ame command -
FreddeN93 - 27.04.2013
Is it possible for you to create a strcmp command for it? Also, is it possible to make the text visible for the player who sent it as well?
Re: LS-RP's /ame command -
RajatPawar - 27.04.2013
https://sampforum.blast.hk/showthread.php?tid=231496
Difficulty level: 1%
Time required: 1 min
Help required: 0
It's not at ALL difficult.
Re: LS-RP's /ame command -
zDivine - 27.04.2013
Quote:
Originally Posted by FreddeN93
Is it possible for you to create a strcmp command for it? Also, is it possible to make the text visible for the player who sent it as well?
|
I wouldn't advise using strcmp, as it's very slow.
And to make it visible to the player sending it, you can do either:
GameTextForPlayer(), or SendClientMessage(), but the player sending it cannot see the chat bubble.
Re: LS-RP's /ame command -
FreddeN93 - 27.04.2013
I don't mind using strcmp, and I got my reasons to not like sscanf etc. If someone could make the command in strcmp I shall be pleased.
Re: LS-RP's /ame command -
zDivine - 27.04.2013
Quote:
Originally Posted by FreddeN93
I don't mind using strcmp, and I got my reasons to not like sscanf etc. If someone could make the command in strcmp I shall be pleased.
|
Your reasons being that you do not know how to script it?
Re: LS-RP's /ame command -
FreddeN93 - 27.04.2013
Quote:
Originally Posted by zDivine
Your reasons being that you do not know how to script it?
|
Reasons being my script don't support it, and I don't want it to support it.
Re: LS-RP's /ame command -
Tamer - 27.04.2013
Well one day you will crash a brick wall that you require sscanf. sscanf brought a meaning to SA-MP...
Re: LS-RP's /ame command -
FreddeN93 - 27.04.2013
Thanks alot, but if you are not willing to help -- don't post here. I'll just mark this solved and find another source.