Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/_on_cliententer.nss
Normal file
21
_module/nss/_on_cliententer.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
object oPlayer = GetEnteringObject();
|
||||
string sPrint;
|
||||
|
||||
void main()
|
||||
{
|
||||
sPrint = "Player Name: "+ GetName(oPlayer)+"\n";
|
||||
sPrint =sPrint + "Player IP Address: "+ GetPCIPAddress(oPlayer)+"\n";
|
||||
sPrint =sPrint + "Player Logon: "+ GetPCPlayerName(oPlayer)+"\n";
|
||||
sPrint =sPrint + "Player PCDKEY: "+ GetPCPublicCDKey(oPlayer)+"\n";
|
||||
sPrint =sPrint + "\n";
|
||||
PrintString(sPrint);
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
// log in/out
|
||||
if (GetLocalInt(oPC,"PCDead")==1)
|
||||
{
|
||||
effect eKill = EffectDeath(TRUE);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,eKill,oPC);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user