SA-MP Forums Archive
/ame - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /ame (/showthread.php?tid=269737)



/ame - CaptainOwen - 17.07.2011

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.


Re: /ame - lawonama - 17.07.2011

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


Re: /ame - Wesley221 - 17.07.2011

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


Re: /ame - CaptainOwen - 17.07.2011

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?


Re: /ame - lawonama - 17.07.2011

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



Re: /ame - =WoR=Varth - 18.07.2011

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