samp.directory
← Скрипты и библиотеки

XenoX352/server-name-animation

TextDraw animation server uses plugins and includes pawn Easing Function supports android and PC 30fps stable

Библиотека★ 1обновлён июнь 2026 г.MITPawn
Открыть на GitHub

README.md


About

The Logo Animation System adds a professional, looping textdraw animation to your server.
It displays a sequence of messages – such as server name, website, and connect info – with a smooth horizontal slide and fade effect.

Perfect for:

  • Server branding in the top‑right corner.
  • Showing server information without cluttering the screen.
  • Providing a modern, polished feel.

Preview

Here’s a preview of the animation in action:

The text slides in, stays for a few seconds, then slides out. The cycle repeats with the next message.

Note: To add your own preview, replace preview.gif in the repository root with an actual GIF recording of the animation.
You can create one using tools like ScreenToGif or LICEcap.


Features

  • Horizontal slide animation with easing (EASE_OUT_QUAD).
  • Fade‑in / fade‑out colour transitions.
  • Infinite loop through multiple messages.
  • Fully configurable – change texts, timing, and position.
  • Per‑player animation – no interference between players.
  • Automatic cleanup on disconnect.

Requirements

  • SA‑MP 0.3.DL or open.mp
  • pawn-easing-functions plugin – required for PlayerText_MoveTo and PlayerText_InterpolateColor with easing.
  • YSI (YSI_Coding\y_hooks) – for hook support.

Installation

  1. Download the easing functions plugin and add it to your plugins folder.
  2. In your server configuration (server.cfg), make sure the plugin is loaded:
  3. Compile the script with Pawno or the compiler included in your server package.
  4. Place the compiled .amx in your filterscripts (or gamemodes) folder and load it accordingly.

Configuration

Inside the script, you can adjust:

#define ANIM_MESSAGES     5           // Number of messages
#define ANIM_INTERVAL     6000        // Time between message changes (ms)
#define ANIM_SPEED        1200        // Slide duration (ms)
#define ANIM_TEXTDRAW_X   550.0       // X position (right edge)
#define ANIM_TEXTDRAW_Y   20.0        // Y position

Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью