View Single Post
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 01-25-2008 , 03:57   Re: Sockets and webservers
Reply With Quote #33

My clan runs this on all their servers

Code:
#include <amxmodx>
#include <fakemeta>

new amx_gamename;
public plugin_init( ) { 
	register_plugin( "Game Namer", "1.1", "NeuroToxin" ); 
	amx_gamename = register_cvar( "amx_gamename", "Team Fortress Classic" ); 
	register_forward( FM_GetGameDescription, "GameDesc" ); 
}
 
public GameDesc( ) { 
	static gamename[32]; 
	get_pcvar_string( amx_gamename, gamename, 31 ); 
	forward_return( FMV_STRING, gamename ); 
	return FMRES_SUPERCEDE; 
}
Sometimes we change domains or forums, is their a way to make this plugin retrieve the value of amx_gamename from a web page?
VMAN is offline