Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. public ZoneCheckpointCheckerbyRangel()
  2. {
  3.     for(new i; i < MAX_PLAYERS; i++)
  4.     {
  5.         if(!IsPlayerConnected(i))continue;
  6.         if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
  7.             //são 2 checkpoints, então mude se for colocar mais...
  8.             gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
  9.         {
  10.             if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 30)
  11.             {
  12.                 cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
  13.                 new tmp[10];
  14.                 format(tmp, sizeof tmp, "~w~%2d/30", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
  15.                 GameTextForPlayer(i, tmp, 1001, 4);
  16.                 GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
  17.             } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 30) //passou 30 segundos dentro do checkpoint
  18.             {
  19.                 GameTextForPlayer(i, "~w~Conquistado", 4000, 1);
  20.                 gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
  21.                 GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
  22.                 GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
  23.                 GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));//Ficar piscando a cor do player na GZ
  24.             }
  25.         }
  26.     }
  27. }