[Snippet] Correct way to do welcome messages
-
I've seen plenty of examples of those trying to do animated welcome messages by attempting to mimic the games' default effect rather than just using an existing function which already does the effect they're trying to mimic. These bad attempts usually consist of spamming setText without an overflow fix. Here is a function below which you can add to your projects:
displayWelcomeMessage() { welcome_message_data = spawnstruct(); welcome_message_data.titleText = "Welcome ^3" + self.name + "^7!"; welcome_message_data.glowColor = (0, 0, 0); welcome_message_data.duration = 7; welcome_message_data.font = "hudbig"; welcome_message_data.foreground = 1; welcome_message_data.hideWhenInMenu = 1; welcome_message_data.archived = 0; maps\mp\gametypes\_hud_message::notifyMessage(welcome_message_data); }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login