30 lines
757 B
Plaintext
30 lines
757 B
Plaintext
|
// Reload module script
|
||
|
// Scripted for Xymoria server
|
||
|
// By -Seeker-
|
||
|
// Made for implementation with tagbased item-activation
|
||
|
// This script allows a PC to restart the server.
|
||
|
|
||
|
#include "x2_inc_switches"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nEvent =GetUserDefinedItemEventNumber();
|
||
|
object oPC;
|
||
|
|
||
|
// Item unique power activated
|
||
|
if (nEvent == X2_ITEM_EVENT_ACTIVATE)
|
||
|
{
|
||
|
oPC = GetItemActivator();
|
||
|
string message = "* Server was reset by: Acc:"+GetPCPlayerName( oPC );
|
||
|
message += " Playername: "+GetName(oPC);
|
||
|
|
||
|
// Write log in logfile
|
||
|
// PrintString("****");
|
||
|
WriteTimestampedLogEntry( message );
|
||
|
// PrintString("****");
|
||
|
|
||
|
// Restart module
|
||
|
StartNewModule("ALANGARA - Where gods are born");
|
||
|
}
|
||
|
}
|