Changed folder name.
Changed folder name.
This commit is contained in:
28
_module/nss/ac_thehandofgod.nss
Normal file
28
_module/nss/ac_thehandofgod.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
// Check if we have the correct event firing the script
|
||||
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
||||
|
||||
object oPC;
|
||||
oPC = GetItemActivator();
|
||||
object oTarget;
|
||||
oTarget = GetItemActivatedTarget();
|
||||
|
||||
if (!GetIsDM(oPC))
|
||||
{
|
||||
|
||||
SendMessageToPC(GetItemActivator(), "You are not a DM!");
|
||||
return;
|
||||
}
|
||||
if(!GetIsPC(oTarget) || GetIsDM(oTarget))
|
||||
{
|
||||
SendMessageToPC(GetItemActivator(), "You Must Target a PC!");
|
||||
}
|
||||
|
||||
//Tell the Database this player has been banned (we will check in "oncliententer")
|
||||
SetCampaignInt(GetName(GetModule()), "ADMIN_BANN", 2, oTarget);
|
||||
|
||||
|
||||
DelayCommand(6.0, BootPC(oTarget));
|
||||
}
|
Reference in New Issue
Block a user