LS-RP's /ame command
#1

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
Reply
#2

I'm looking too :O
Reply
#3

pawn Код:
SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime);
Reply
#4

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?
Reply
#5

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)");
}
Reply
#6

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 !
Reply
#7

Quote:
Originally Posted by Y2Jerichoholic
Посмотреть сообщение
This is /me .. we search /ame !
You obviously didn't look at the code. It is /ame.
Reply
#8

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!
Reply
#9

Quote:
Originally Posted by Y2Jerichoholic
Посмотреть сообщение
This is /me .. we search /ame !
Just change the command name to /ame.
Reply
#10

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?
Reply
#11

https://sampforum.blast.hk/showthread.php?tid=231496
Difficulty level: 1%
Time required: 1 min
Help required: 0
It's not at ALL difficult.
Reply
#12

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.
Reply
#13

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.
Reply
#14

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?
Reply
#15

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.
Reply
#16

Well one day you will crash a brick wall that you require sscanf. sscanf brought a meaning to SA-MP...
Reply
#17

Thanks alot, but if you are not willing to help -- don't post here. I'll just mark this solved and find another source.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)