void BootPlayerHandler (object oPC) {
SendMessageToPC(oPC,"Booting...");
if (GetIsObjectValid(oPC)) BootPC(oPC);
}
void BootPlayer (object oPC, string sMessage) {
SendMessageToPC(oPC,"Sorry, you are about to be booted: " + sMessage);
DelayCommand(13.0f,BootPlayerHandler(oPC));
}
you can call BootPlayer from your area's OnEnter event or any other logic that decides to boot them.
EDIT: Added check for valid player object to avoid crashes.
Modifié par eeriegeek, 05 juillet 2011 - 03:34 .