Raised This Month: $12 Target: $400
 3% 

Game Name Changer V.1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        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 - 62744 views - 456 Bytes)
__________________
I am the reality!

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode