shroomheadofmarbles
New member
- Joined
- Apr 5, 2005
- RedCents
- 0¢
was trying to update riddlers source earlier got most of it see that thread but anyways was able to take this working out of it
#include "../MQ2Plugin.h"
PreSetup("MQ2Fade");
VOID Fade(PSPAWNINFO pChar, PCHAR szLine);
VOID fade(PSPAWNINFO pChar, PCHAR szLine) {
PCHARINFO pCharInfo = GetCharInfo();
PZONEINFO Zone = (PZONEINFO)pZoneInfo;
int nZoneID = 0;
nZoneID = GetZoneID(Zone->ShortName);
pCharInfo->ZoneBoundId = nZoneID;
pChar->pCharInfo->ZoneBoundY = 0;
pChar->pCharInfo->ZoneBoundX = 0;
pChar->pCharInfo->ZoneBoundZ = 0;
WriteChatColor("Fading Memories.",
COLOR_PURPLE);
pChar->Type = SPAWN_CORPSE;
}
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand("/fade",fade);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2fade");
RemoveCommand("/fade");
}
#include "../MQ2Plugin.h"
PreSetup("MQ2Fade");
VOID Fade(PSPAWNINFO pChar, PCHAR szLine);
VOID fade(PSPAWNINFO pChar, PCHAR szLine) {
PCHARINFO pCharInfo = GetCharInfo();
PZONEINFO Zone = (PZONEINFO)pZoneInfo;
int nZoneID = 0;
nZoneID = GetZoneID(Zone->ShortName);
pCharInfo->ZoneBoundId = nZoneID;
pChar->pCharInfo->ZoneBoundY = 0;
pChar->pCharInfo->ZoneBoundX = 0;
pChar->pCharInfo->ZoneBoundZ = 0;
WriteChatColor("Fading Memories.",
COLOR_PURPLE);
pChar->Type = SPAWN_CORPSE;
}
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand("/fade",fade);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2fade");
RemoveCommand("/fade");
}

