Quote:
Originally Posted by terrum
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" );