06.06.2011, 16:10
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.
It is a CreatePlayer3DTextLabel.. more info here: https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
|
I Don't Think it is One, Its SetPlayerChatBubble
|
public OnPlayerText(playerid, text[])
{
// Your command code
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
return 1;
}
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 0; //he said not in chat place :D
}
command(ame, playerid, params[]) {
if(!isnull(params))
return SetPlayerChatBubble(playerid, params, 0xFF0000FF, 75.0, 1000);
return SendClientMessage(playerid, 0, "Syntax: /ame [command]");
}
pawn Код:
|
Man, this command doesn't work for my server, but I need a classical one, with /... .
Can someone help me, please? |
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;
}