SA-MP Forums Archive
Timer help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer help (/showthread.php?tid=574000)



Timer help - dundolina - 12.05.2015

Hello i need timer for this 3 minigames. When moneybox end - deathmatch starts after 30 minutes and when deathmatch ends streetrace start after 30 minutes. This is my code:

Код:
              if (IsPlayerInRangeOfPoint(playerid, 3.0,Race4))
     {


		                          format(string2, sizeof(string2), "Street Race: %s спечели съзтезанието!",PlayerName(playerid));
                        SendClientMessageToAll(COLOR_BLUE, string2);
                                  format(string2, sizeof(string2), "Който успее убие %s до 5 минути ще спечели +1 CMN1 Kill!",PlayerName(playerid));
          SendClientMessageToAll(COLOR_ORANGE, string2);
          PlayerInfo[playerid][pCMN1] = 1;
		  PlayerInfo[playerid][pCMN1T] = 5*60;
		  PlayerInfo[playerid][pCMN1T3] = 5*60;
		  Moneybox = 1;
		  Race = 0;
                            DisablePlayerCheckpoint(i);
                            }


     
     
     
     if (IsPlayerInRangeOfPoint(playerid, 3.0,MB2) && PlayerInfo[playerid][pKufar] >= 1)
     {

     PlayerInfo[playerid][pZvezda1] += 2;
              PlayerInfo[playerid][pWantedLevel]+= 2;
	      PlayerInfo[i][pDMF2] = 1*1;
                        format(string2, sizeof(string2), "Moneybox: %s достави куфара!",PlayerName(playerid));
                        SendClientMessage(i, COLOR_GREEN, string2);
          format(string2, sizeof(string2), "Който успее убие %s до 5 минути ще спечели +1 CMN1 Kill!",PlayerName(playerid));
          SendClientMessageToAll(COLOR_ORANGE, string2);
          PlayerInfo[playerid][pCMN1] = 1;
		  PlayerInfo[playerid][pCMN1T] = 5*60;
		  PlayerInfo[playerid][pCMN1T3] = 5*60;
		  PlayerInfo[playerid][pZvezda1] += 2;
		  
                        		  Kufar = 0;
		  Moneybox = 0;
		  Death = 1;
         SendClientMessage(playerid,COLOR_GREEN,"Moneybox: Ти достави куфара и получи $5000 и 1 EP!");
                                            GameTextForPlayer(i, "~w~Mission~n~~r~Deathmatch", 3000, 1);
                                            
         GivePlayerMoney(playerid, 5000);
         PlayerInfo[playerid][Exp]+= 1;
         PlayerInfo[playerid][pMon] += 1;
                  PlayerInfo[i][pMoney] = 0;
                  PlayerInfo[i][pDM] = 1*1;
                  PlayerInfo[i][pKufar] = 0;
                           DisablePlayerCheckpoint(i);
                            DisablePlayerCheckpoint(playerid);
}
}
}



Re: Timer help - dundolina - 12.05.2015

Please help..


Re: Timer help - dundolina - 12.05.2015

Help..


Re: Timer help - StR_MaRy - 12.05.2015

i said add me and i will help you , strmary95 on skype


Re: Timer help - dundolina - 12.05.2015

Help..


Re: Timer help - JaydenJason - 12.05.2015

I doubt you can make anything of that,though instead of using += 1; you can simply do ++;

Plus what the hell is up with your indenting..


Re: Timer help - dundolina - 13.05.2015

I dont understand you..


Re: Timer help - dundolina - 13.05.2015

Help please.


Re: Timer help - Clergy - 13.05.2015

No one would help a Bump Whore!


Re: Timer help - dundolina - 13.05.2015

Shut up sucker.