AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP]How to make so you can search ur plugin at game-monitor? (https://forums.alliedmods.net/showthread.php?t=118226)

NiQu 02-08-2010 20:00

[HELP]How to make so you can search ur plugin at game-monitor?
 
How do i make so i can search for my server variable in my plugin on game monitor?

Example: i have 5 servers running myplugin, and i added all of them to game-monitor, and i wanna search for a server variable called myplugin_version.

How do i make that variable? myplugin_version.

fysiks 02-08-2010 20:29

Re: [HELP]How to make so you can search ur plugin at game-monitor?
 
I use:

PHP Code:

register_cvar("plugin_name""v1.0 by Author"FCVAR_SERVER|FCVAR_SPONLY


funstyle 02-08-2010 20:31

PHP Code:

#define AUTHOR "funstyle"
#define PLUGIN "plugin name"
#define VERSION "version 1"
#define VERSION_CVAR "myplugin_version"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_cvar(VERSION_CVARVERSIONFCVAR_SERVER); 


NiQu 02-08-2010 20:35

Re: [HELP]How to make so you can search ur plugin at game-monitor?
 
Thanks both of you :P
Im using funstyle's method.


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

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