Pugs
Member
- Joined
- Feb 6, 2005
- RedCents
- 654¢
This plugin will make you show as a gm on your client. have fun
/gm on will turn it on and /gm off will turn it off.
btw this is my first plugin
/gm on will turn it on and /gm off will turn it off.
Rich (BB code):
// MQ2GM.cpp : Defines the entry point for the DLL application.
#include "../MQ2Plugin.h"
PreSetup("MQ2GM");
// Function DEFINE
VOID GM (PSPAWNINFO, PCHAR);
//STARTUP
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand ("/gm",GM);
}
// SHUTDOWN
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("You are no longer a GM");
RemoveCommand ("/gm");
}
// GM ON
VOID GM(PSPAWNINFO pChar, PCHAR szLine)
{
char command[MAX_STRING];
GetArg (command,szLine,1);
if (!stricmp(command,"on"))
{
pChar->GM = true;
}
if (!stricmp(command,"off"))
{ pChar->GM = false;
} else
{
WriteChatColor("Useage: /gm <on|off>",CONCOLOR_RED);
}
}
btw this is my first plugin
Last edited:



cade, did u incorporate the level change in it too? or just the GM thing. DING 100!