I wanna know how to make the /ame command.
#8

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;
}
Reply


Messages In This Thread
I wanna know how to make the /ame command. - by Dopey. - 20.05.2012, 08:01
Re: I wanna know how to make the /ame command. - by JaTochNietDan - 20.05.2012, 08:03
[No subject] - by Dopey. - 20.05.2012, 08:08
Re: I wanna know how to make the /ame command. - by ReneG - 20.05.2012, 09:24
Re: I wanna know how to make the /ame command. - by Dopey. - 20.05.2012, 09:25
Re: I wanna know how to make the /ame command. - by $$inSane - 20.05.2012, 09:32
Re: I wanna know how to make the /ame command. - by Dopey. - 20.05.2012, 09:33
Re: I wanna know how to make the /ame command. - by ReneG - 20.05.2012, 09:35
Re: I wanna know how to make the /ame command. - by Dopey. - 20.05.2012, 09:36
Re: I wanna know how to make the /ame command. - by Dopey. - 20.05.2012, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)