My first stuff was more like this:

Code: Select all
class GodModeKill extends FOModActor;
function Tick(float DeltaSeconds)
{
local PlayerPawn P;
super.Tick(DeltaSeconds);
if (P.IsA('DeusExPlayer') && P.ReducedDamageType == 'All')
{
P.ClientMessage("|P2Takeoff the god mode! OR you'll become Kicked " $DeltaSeconds);
if (DeltaSeconds == 10)
{
P.ClientMessage("OK Bye");
if (DeltaSeconds == 12)
{
P.Destroy();
}
}
}
}
//---END-CLASS---
Second, the Tick parameter that's called DeltaSeconds here (usually it's called deltatime), does not count up but provides the time difference.. back then I thought if I call it DeltaSeconds instead of Deltatime it would count up.

You see.. you're on a good way so far!
Anyway.. to your problem... actually it should work..

I've compiled it myself and uploaded the uc file as attachment to this post.