/ame Filterscript or a ready code.
#1

Hey, I need a command which creates a 3dlabel above a player message like a roleplay one with the /me color,
the message need to be annonated one which means it's not in the string just above a player for few seconds and then disappears.
Thanks in advance again.
Reply
#2

I doubt there's any filterscripts since it's so easy to create, use:
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble

Or go here to request a script:
https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#3

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
I doubt there's any filterscripts since it's so easy to create, use:
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble

Or go here to request a script:
https://sampforum.blast.hk/showthread.php?tid=447813
Well, I would apprciate if you would help me, I'm new to all of this,
Ive tried to figure it out but I can't seem to make one,
If you could help me...
Reply
#4

Here's explanations of a simple /ame:
pawn Код:
COMMAND:ame(playerid, params[]) // ZCMD example, change if you're using another command processor
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "/ame [text]");
    // If the player didn't write anything, "return" to stop the command so his chat bubble isn't set
    // We're gonna "return SendClientMessage", which will return the value SendClientMessage returns
    // A bit confusing, but if SendClientMessage returns 1, the "return SendClientMessage" will do "return 1"
    // SendClientMessage returns 1 if the player is online, and 0 if the player is offline, but that doesn't matter
    // Basically we both use "return" to stop the command, and "SendClientMessage" to give the player a message "/ame [text]"

    SetPlayerChatBubble(playerid, params, color, Float:drawdistance, expiretime);
    // "playerid" - The chat bubble is gonna be attached to playerid (the player who used the command as you can see in the CMD parameters CMD:ame(playerid, ...) )
    // "params" - The text the player entered, as seen in the CMD parameters, we're gonna display this text above his head
    // Fill in the color, expiretime and drawdistance yourself with what you wish to use, explained on the wiki
   
    return 1;
    // Return 1, to let the server know the command was performed sucessfully
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)