Jump to content

Console Comands - First Relase -


LondoN eXtream

Recommended Posts

Plugin Name:  Console Comands

Plugin Version: v1.0 Beta

Plugin Author: dK^aLeX

Description: Acest plugin va ajuta sa execuati comenzi din consola.

EX: amx_shield - Va va opri Pluginurile antiflood.

amx_hostname - Va modifica hostname, prin: new const HostName2[] = "DNS"

 

Download:

#include <amxmodx>
#include <amxmisc>
 
new const HostName[] = "Nume Server"
new const HostName2[] = "Nume Server"
 
public plugin_init()
{
       register_concmd("amx_cfg", "iAMXXExec", 0)
       register_concmd("amx_hostname", "iAMXXHostName", 0)
       register_concmd("amx_shield", "iAMXXShielsOff", 0)
}
 
public client_connect(id)
{
       client_print(id, print_console , "------- Welcome to %s", HostName);
}
 
public iAMXXExec()
{
       server_print("[CC] Executing AMXX Configuration")
       server_cmd("exec addons/amxmodx/configs/amxx.cfg")
}
 
public iAMXXHostName()
{
       server_print("[CC] Change hostname, please wait!")
       server_cmd("amx_cvar hostname %d", HostName2)
}
 
public iAMXXShieldsOff()
{
       server_print("[CC] Shutting down server Shield")
       server_cmd("amx_pause FurienNight_AntiFlood.amxx")
       server_cmd("amx_pause Krond-Functions.amxx")
       server_cmd("amx_pause antiflood.amxx")
}
 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...