20.05.2012, 09:35
My goodness, this is easy. You just gotta look at the samp natives. SetPlayerChatBubble to be exact.
Give this a shot.
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;
}