Alangara_PRC8/_module/nss/mn_playerrestart.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

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");
}
}