AME command.
#1

I was wondering, could somebody please help me with creating a /ame command, it is like the RP command /me, but instead of showing on your screen, it shows above your head, please help :3, thanks.
Reply
#2

It is a CreatePlayer3DTextLabel.. more info here: https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Reply
#3

Quote:
Originally Posted by RatHack
Посмотреть сообщение
It is a CreatePlayer3DTextLabel.. more info here: https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
I Don't Think it is One, Its SetPlayerChatBubble
Reply
#4

Quote:
Originally Posted by 0_o
Посмотреть сообщение
I Don't Think it is One, Its SetPlayerChatBubble
Right, im mad if i think the Create3DLabbel is..

so getty154 it should be

pawn Код:
public OnPlayerText(playerid, text[])
{
    // Your command code
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
    return 1;
}
Reply
#5

Quote:
Originally Posted by RatHack
Посмотреть сообщение
Right, im mad if i think the Create3DLabbel is..

so getty154 it should be

pawn Код:
public OnPlayerText(playerid, text[])
{
    // Your command code
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
    return 1;
}
Use this but not for all texts/messages, use only for your specific command

pawn Код:
public OnPlayerText(playerid, text[])
{
    // Your command code
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
    return 0; //he said not in chat place :D
}
Reply
#6

So how would I put that into a command like this?

command(ame, playerid, params[])
Reply
#7

Hey i would help but your a scammer so no.
Reply
#8

pawn Код:
command(ame, playerid, params[]) {
    if(!isnull(params))
        return SetPlayerChatBubble(playerid, params, 0xFF0000FF, 75.0, 1000);

    return SendClientMessage(playerid, 0, "Syntax: /ame [command]");
}
Reply
#9

Quote:
Originally Posted by Calgon
Посмотреть сообщение
pawn Код:
command(ame, playerid, params[]) {
    if(!isnull(params))
        return SetPlayerChatBubble(playerid, params, 0xFF0000FF, 75.0, 1000);

    return SendClientMessage(playerid, 0, "Syntax: /ame [command]");
}
Man, this command doesn't work for my server, but I need a classical one, with /... .
Can someone help me, please?
Reply
#10

Quote:
Originally Posted by MrThug
Посмотреть сообщение
Man, this command doesn't work for my server, but I need a classical one, with /... .
Can someone help me, please?
Why'd you bump a really old thread?

Anyways, see if this works:

pawn Код:
CMD:ame(playerid, params[])
{
    new string[128];
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ame [action]");
    format(string, sizeof(string), "* %s %s", (playerid), params);
    SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 10000);
    SendClientMessage(playerid, COLOR_PURPLE, string);
    return 1;
}
Note: It should send everyone your /ame above your head and it should send you back your /ame in a message
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)