17.01.2011, 13:08
You can use OnPlayerPause by The_Moddler.
Example;
Create a variable.
Then set it to 0 OnPlayerConnect.
Then:
It's just an idea... I don't know why it does it like that.
Example;
Create a variable.
pawn Код:
new InHospital[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
InHospital[playerid] = 0;
return 1;
}
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;
}