#include "php_include" #include "nwnx_funcs_w" void main() { object oPC = OBJECT_SELF; // Linux is handled on the OnClientExit event as opposed to the OnPlayerLeaving hook that Windows has if(ADV_USING_LINUX) oPC = GetExitingObject(); PHP_SaveHitPoints(oPC); }