Jump to content

[AMXX-RF] Simple Redirect


LondoN eXtream

Recommended Posts

Nume: Simple Redirect

Versiune: 1.0

Autor: dK^aLeX

 

Cvaruri:

amx_rd_server "cs.rangfort.ro:27015" // dns/ip + port

 

Download:

#include <amxmodx>
#include <amxmisc>

new cvar_redirect;

public plugin_init()
{
    cvar_redirect = register_cvar("amx_rd_server", "cs.rangfort.ro:27015");
}

public client_connect(Client)
{
    new cvar_string[20]
    
    get_pcvar_string(cvar_redirect, cvar_string, charsmax(cvar_string))
    
    client_cmd(Client, "connect %s", cvar_string)
}

 

Link to comment
Share on other sites

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