Cade
The Rainman, (Administrator)
- Joined
- Feb 28, 2005
- RedCents
- 1,041¢
Simple levitate plugin I wrote in the submit new thread box cause I'm bored...FEAR MY 1337 SKILLZ! I know I've seen it around (durr...everyone and their mother can write it...) but haven't run accross it here.
Rich (BB code):
#include "../MQ2Plugin.h"
VOID LeviCmd(PSPAWNINFO pChar, PCHAR szLine)
{
char command[MAX_STRING];
GetArg(command,szLine,1);
if(!stricmp(command,"on"))
{
pChar->Levitate = 2;
}
if(!stricmp(command,"off"))
{
pChar->Levitate = 0;
}
}
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand("/levitate",LeviCmd);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
RemoveCommand("/levitate");
}


