A Problem About Timer
#3

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    
	/* Check The Stats of CheckPoint */
	new inPoint = 0;
	for(new i=0;i<MAX_PLAYERS;i++)
	    {
	        if (GetPlayerTeam(i) == 2 && IsPlayerInCheckpoint(i))
		        {
		            inPoint = 1;
		            inred = 1;
		            break;
		        }
	    }
	    
	if (inPoint == 0)
		{
			KillTimer(timer);
			time = 12;
			inred = 0;
			return true;
		}
}
tested,but the problem still not been resolved.
Reply


Messages In This Thread
A Problem About Timer - by VivianKris - 24.04.2011, 13:14
Re: A Problem About Timer - by judothijs - 24.04.2011, 13:48
Re: A Problem About Timer - by VivianKris - 24.04.2011, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)