#1

If anybodies played LS-RP, they would know about the "/ame" function which I believe makes a 3D Text Label over the persons model for about 10 seconds. I was wondering how I could make it something like that, its just like a /me though it doesn't appear on the chatlog it only appears above the head as a 3D Text Label.
Reply
#2

I think take a look at this:
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Reply
#3

Actually there is a function for this.
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#4

Everytime I try, and do /ame "whatever" it keeps showing me the usage. If I just type /ame it shows me the usage again. Can someone show me a completed /ame script?
Reply
#5

Try this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
 if(!strcmp(cmdtext, "/ame", true, 4)) // 3 is the length of /me
 {
 if(cmdtext[4] == 0) {
 SendClientMessage(playerid, 0xFF0000FF, "USAGE: /ame [action]");
 return 1;
 }
 //Yourchatbubblethings..
 }
 return 0;
 }
Reply
#6

With using Smart Chat V2:
pawn Код:
CMD:ame(playerid,params[])
{
    new string[129];
    if(sscanf(params,"s[129]",string)) return SendClientMessage(playerid,SYellow,"Usage: /ame <text> ~To tell what you do (Above your head).");
    else SCBubble(playerid,string,true,10,"",true,SPurple,10,5000);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)