Raised This Month: $ Target: $400
 0% 

Game Name Changer V.1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 04-10-2008 , 18:22   Re: Game Name Changer V.1.1
Reply With Quote #11

Quote:
Originally Posted by terrum View Post
Hey just asking, Anyway to make it so the script changes the gamename (Without a cvar needed)? No reason just wondering, I'm curious.

Thanks.
Like so:
Code:
#include <amxmodx>
#include <fakemeta>

#define GAME_NAME "Team Fortress Classic"

public plugin_init( ) { 
	register_plugin( "Game Namer", "1.1cvarless", "NeuroToxin" ); 
	register_forward( FM_GetGameDescription, "GameDesc" ); 
}
 
public GameDesc( ) { 
	forward_return( FMV_STRING, GAME_NAME ); 
	return FMRES_SUPERCEDE; 
}
or you could go without the define and just place the string inside the native like so (though it does the same thing):
Code:
forward_return( FMV_STRING, "Team Fortress Classic" );
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
 



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 10:59.


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