View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
NeuroToxin92
New Member
Join Date: Dec 2005
Location: Hell!!!
Old 12-02-2005 , 18:09   Game Name Changer V.1.1
Reply With Quote #1

Change the name of the game in the server list like from Counter-Strike to Super-Strike.

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; 
}
[img]http://img139.**************/img139/7421/gamenameshotdj5.jpg[/img]

How to use:
In server.cfg, put amx_gamename "Put Name Here"

Also you must activate FakeMeta or this will NOT work.


-NeuroToxin
Attached Files
File Type: sma Get Plugin or Get Source (gamenamechanger.sma - 62745 views - 456 Bytes)
__________________
I am the reality!

Last edited by Emp`; 11-25-2007 at 15:56. Reason: v1.1
NeuroToxin92 is offline