I wanna know how to make the /ame command. -
Dopey. - 20.05.2012
Just like in LSRP, im a new scripter learning pawno, i want to learn how to create a /ame command. If there's any links or tutorials done about it please post below, or just explain if you're not lazy enough :P. I'll definetly rep you, thanks in advance guys!
Re: I wanna know how to make the /ame command. -
JaTochNietDan - 20.05.2012
Have you already gotten familiar with the basics of computer programming? You should also get familiar with PAWN (not pawno) by reading the official PAWN documentation
here.
Once you have gotten familiar with PAWN, you can then start to work with the SA-MP API documentation which is available
here.
-
Dopey. - 20.05.2012
Yes i have looked into the sa-mp wiki tutorials etc, but the PAWN documentation never saw it, i'll read it for now, but yeah i can script things such as /me and /do. Thanks for the tips!
So anyone any tutorials/guides/scripts?
Re: I wanna know how to make the /ame command. -
ReneG - 20.05.2012
I've seen this thread title a trillion times. Just what exactly is /ame supposed to do?
Re: I wanna know how to make the /ame command. -
Dopey. - 20.05.2012
It's like a /me command, /me [action] , im looking for /ame, the difference is that /me comes up in the chat, /ame comes up on top of the head and not the chat, in other words it doesn't spam the chat. If you know any tutorial/guide based on this i'd rep you if you share it for me. Thanks. EDIT: And for the guy that wrote the /ame command it comes up in the chat: "* > Tremaine Young bends over. But for the rest who are around Tremaine, they'd see the action on his head, where the name is.
Re: I wanna know how to make the /ame command. -
$$inSane - 20.05.2012
can u explain this /ame well
Re: I wanna know how to make the /ame command. -
Dopey. - 20.05.2012
Isn't the upper comment enough?
Re: I wanna know how to make the /ame command. -
ReneG - 20.05.2012
My goodness, this is easy. You just gotta look at the samp natives.
SetPlayerChatBubble to be exact.
Give this a shot.
pawn Код:
#define COLOR_PURPLE 0xC2A2DAAA // the famous purple color add this at the top
#define ME_TIME (4) // change the number to however many seconds you want the text to display
// add it on top of your script as well.
CMD:ame(playerid, params[])
{
new
action[80], // the string for the action
string[128] // the string to set on player's head
;
if(isnull(params)) // if they didn't type an action
{
// then it sends the message below.
SendClientMessage(playerid, -1, "USAGE: /ame [action]");
return 1;
}
format(string, 128, "* %s", action); // format the string on the player's head
SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 10.0, ME_TIME*1000);
return 1;
}
Re: I wanna know how to make the /ame command. -
Dopey. - 20.05.2012
Quote:
Originally Posted by VincentDunn
My goodness, this is easy. You just gotta look at the samp natives. SetPlayerChatBubble to be exact.
Give this a shot.
pawn Код:
#define COLOR_PURPLE 0xC2A2DAAA // the famous purple color add this at the top #define ME_TIME (4) // change the number to however many seconds you want the text to display // add it on top of your script as well. CMD:ame(playerid, params[]) { new action[80], // the string for the action string[128] // the string to set on player's head ; if(isnull(params)) // if they didn't type an action { // then it sends the message below. SendClientMessage(playerid, -1, "USAGE: /ame [action]"); return 1; } format(string, 128, "* %s", action); // format the string on the player's head SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 10.0, ME_TIME*1000); return 1; }
|
That's the one! Thanks!!
Re: I wanna know how to make the /ame command. -
Dopey. - 20.05.2012
(22402) : warning 203: symbol is never used: "ame" is what i receive as a warning, it's all alright?