25 lines
681 B
Plaintext
25 lines
681 B
Plaintext
|
#include "x2_inc_switches"
|
||
|
void main()
|
||
|
{
|
||
|
// Check if we have the correct event firing the script
|
||
|
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
||
|
|
||
|
|
||
|
object oActivator=GetItemActivator();
|
||
|
object oPC = GetFirstPC();
|
||
|
|
||
|
while (oPC != OBJECT_INVALID)
|
||
|
{
|
||
|
string sReport;
|
||
|
sReport = ">>> ID: " + GetPCPlayerName( oPC )
|
||
|
+ "; Name: "+ GetName( oPC )
|
||
|
+ "; CD Key:" + GetPCPublicCDKey( oPC )
|
||
|
+ "; IP:" + GetPCIPAddress( oPC );
|
||
|
SendMessageToPC(oActivator, sReport);
|
||
|
oPC=GetNextPC();
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|