What the heck. [Hospital]
#8

You can use OnPlayerPause by The_Moddler.

Example;

Create a variable.
pawn Код:
new InHospital[MAX_PLAYERS];
Then set it to 0 OnPlayerConnect.
pawn Код:
public OnPlayerConnect(playerid)
{
    InHospital[playerid] = 0;
    return 1;
}
Then:
pawn Код:
public OnPlayerPause(playerid)
{
    if(InHospital[playerid] == 1) // You could kill the timer.
    return 1;
}

public OnPlayerUnPause(playerid)
{
    if(InHospital[playerid] == 1) // Start the timer again.
    return 1;
}
It's just an idea... I don't know why it does it like that.
Reply


Messages In This Thread
What the heck. [Hospital] - by hanzen - 16.01.2011, 19:35
Re: What the heck. [Hospital] - by hanzen - 17.01.2011, 12:22
Re: What the heck. [Hospital] - by Kase - 17.01.2011, 12:43
Re: What the heck. [Hospital] - by hanzen - 17.01.2011, 12:48
Re: What the heck. [Hospital] - by Tenshi - 17.01.2011, 12:52
Re: What the heck. [Hospital] - by hanzen - 17.01.2011, 12:54
Re: What the heck. [Hospital] - by Tenshi - 17.01.2011, 12:57
Re: What the heck. [Hospital] - by Toreno - 17.01.2011, 13:08

Forum Jump:


Users browsing this thread: 6 Guest(s)