samp.directory
← Scripts y librerías

Juice288/discord-webhook-open.mp

Discord Webhook connects with gamemode using the open source pawnraknet api

Librería★ 3actualizado jun 2026MITPawn
Abrir en GitHub
Probar en el compilador de Pawn →

Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un script.

README.md

Discord Webhook for SA:MP

Send rich embed messages to Discord from your SA:MP server.
Pawn Requests · Quick Start · Installation


About

Discord Webhook is a lightweight Pawn include that lets your SA:MP or open.mp server send beautifully formatted embed messages directly to a Discord channel.
Powered by the Pawn Requests plugin, it offers a clean and straightforward API with zero bloat.

Whether you need to log admin actions, announce server events, or display player statistics, this system gets the job done with minimal configuration.


Features

  • Rich embed messages – title, description, colour, fields, footer.
  • Customisable bot username and avatar per request.
  • Inline fields for compact information display.
  • Lightweight and fast – no extra dependencies besides Requests.
  • Compatible with SA:MP 0.3.7 and open.mp.
  • Clean, well‑documented code that’s easy to extend.

Requirements

  • Pawn Requests plugin (download)
  • SA:MP server 0.3.7+ or open.mp
  • Basic Pawn scripting knowledge

Installation

SA:MP (0.3.7 / 0.3.DL)

  1. Download the latest Pawn Requests plugin.
  2. Place requests.dll (Windows) or requests.so (Linux) into your server’s plugins/ folder.
  3. Place requests.inc into your pawno/include/ folder.
  4. Add requests to the plugins line in server.cfg.
  5. Copy discord-webhook.inc into your pawno/include/ folder.

open.mp

  1. Download the latest Pawn Requests plugin.
  2. Place requests.dll / requests.so into your server’s plugins/ folder.
  3. Place requests.inc into your qawno/include/ folder.
  4. Add requests to the legacy_plugins array in config.json.
  5. Copy discord-webhook.inc into your qawno/include/ folder.

Quick Start

Include the library in your script and send an embed with one line:

#include <discord-webhook>

public OnGameModeInit()
{
    SendDiscordEmbed(
        "https://discord.com/api/webhooks/1234567890/abcdef",
        "My SA:MP Bot",
        "https://i.imgur.com/myavatar.png",
        "Server Started",
        "The server is now online!",
        0x00FF00,
        "Info|Everything is running smoothly",
        "My SA:MP Server"
    );
    return 1;
}

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

Juice288/discord-webhook-open.mp: Librería de SA-MP | samp.directory