SA-MP Forums Archive
AME command. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AME command. (/showthread.php?tid=259916)



AME command. - iGetty - 06.06.2011

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.


Respuesta: AME command. - RatHack - 06.06.2011

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


Re: Respuesta: AME command. - 0_o - 06.06.2011

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


Respuesta: Re: Respuesta: AME command. - RatHack - 06.06.2011

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



Re: Respuesta: Re: Respuesta: AME command. - 0_o - 11.06.2011

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
}



Re: AME command. - iGetty - 31.07.2011

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

command(ame, playerid, params[])


Re: AME command. - Lilcuete - 31.07.2011

Hey i would help but your a scammer so no.


Re: AME command. - Calgon - 31.07.2011

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

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



Re: AME command. - MrThug - 21.12.2012

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?


Re: AME command. - EAsT-OAK_510 - 21.12.2012

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