32 lines
982 B
Plaintext
32 lines
982 B
Plaintext
//This is the default header for most items converted to the new
|
|
//tagbased system.
|
|
//Remember to create 2 scripts, one using the template, and name this
|
|
//script ac_"tagnameofitemgoeshere" (without the "")
|
|
|
|
#include "x2_inc_switches"
|
|
void main()
|
|
{
|
|
// Check if we have the correct event firing the script
|
|
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
|
|
|
//Define Variables
|
|
|
|
object oItem=GetItemActivated();
|
|
object oActivator=GetItemActivator();
|
|
object oPlayer = GetItemActivator();
|
|
object target = GetItemActivatedTarget();
|
|
string tag = GetTag(oItem);
|
|
|
|
//You main script function goes under this line.
|
|
|
|
{
|
|
string sReport;
|
|
sReport = ">>> ID: " + GetPCPlayerName( target )
|
|
+ "; Name: "+ GetName( target )
|
|
+ "; CD Key:" + GetPCPublicCDKey( target )
|
|
+ "; IP:" + GetPCIPAddress( target );
|
|
SendMessageToPC(oActivator, sReport);
|
|
}
|
|
|
|
}
|