24.04.2011, 15:05
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; } }