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
|
I Don't Think it is One, Its
SetPlayerChatBubble
Respuesta: Re: Respuesta: AME command. -
RatHack - 06.06.2011
Quote:
Originally Posted by 0_o
|
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