Cod:
#include <amxmodx>
#define PLUGIN "Redirect No-Steam"
#define VERSION "1.0"
#define AUTHOR "Alka"
new const NoSteamServerIp[] = "127.0.0.1"; //No-Steam server ip; Serverul pe care va fi redirectat daca nu are Steam jucatorul.
new const NoSteamServerPort[] = "27015"; //No-Steam server port. Portul serverului pe care va fi redirectat jucatorul.
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public client_authorized(id)
{
new szAuthid[32];
get_user_authid(id, szAuthid, sizeof szAuthid - 1);
/*
szAuthid[0] == 'S'
szAuthid[1] == 'T'
szAuthid[2] == 'E'
szAuthid[3] == 'A'
szAuthid[4] == 'M'
szAuthid[5] == '_'
szAuthid[6] == '0'
*/
if(szAuthid[7] != ':')
{
console_print(id, "Sorry, but now, this server is Steam Only!Redirecting...");
client_cmd(id, "discconect;wait;wait;connect %s:%s", NoSteamServerIp, NoSteamServerPort);
}
}
//Autorul acestui plugin este MaXiM.
//http://csbestial.com
Daca nu stiti sa il compialti pluginul lasati un reply cu ip si port serverului unde vreti sa redirectionati jucatorii cu NonSteam ce vor sa intre pe serverul vostru.[/code]