Jump to content
Sign in to follow this  
totopizza

[N-PLUGIN] Anti Graffitis

Recommended Posts

Nombre del Plugin: Anti Graffitis

Author: Avila

Descripción: Con este plugin, podremos bloquear los graffitis en el servidor. El jugador no podra pintar en la pared

Imágenes: No hay...

Fuente: Anti Graffitis

Código:

#include <amxmodx>
#include <engine>

#define PLUGIN "Anti Graffitis"
#define VERSION "1.0"
#define AUTHOR "Avila"

const IMPULSE_SPRAY = 201
new g_msgSayText, g_bMsgSend;

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_event("HLTV", "event_round_start", "a", "1=0", "2=0");
   register_impulse(IMPULSE_SPRAY, "cmd_grafity")
   g_msgSayText = get_user_msgid("SayText")
}

public event_round_start() g_bMsgSend = 0;

public cmd_grafity(id)
{
   if (~g_bMsgSend & (1 << id-1))
   {
       g_bMsgSend ^= (1 << id-1)
       message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, id);
       write_byte(id);
       write_string("^x01[AMXX] No esta permitido poner^x04 graffitis^x01 en este servidor");
       message_end();
   }

   return PLUGIN_HANDLED
} 

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...