Capture zones problem rep+
#3

But this can also work witthout playerid param (I am not using foreach)
Код:
forward CountDown1();
public CountDown1()
{
	for (new Player; Player < MAX_PLAYERS; Player++)
	{
                //Replace all "playerid" by "Player"
		if(IsPlayerInDynamicCP(Player, CP[CAPZONE]) && UnderAttack[CAPZONE] == 1 && IsPlayerCapturing[Player][CAPZONE] == 1)
		{
			CountVar[Player][CAPZONE]--;
			new str1[124];
			TextDrawShowForPlayer(playerid, CountText[Player]);
			format(str1, sizeof(str1),"~r~%d seconds ~w~left to ~g~capture", CountVar[Player][CAPZONE]);
			TextDrawSetString(CountText[Player], str1);
		}
	}
	return 1;
}
Reply


Messages In This Thread
Capture zones problem rep+ - by Mijata - 11.01.2017, 13:43
Re: Capture zones problem rep+ - by darkdrago - 11.01.2017, 14:54
Re: Capture zones problem rep+ - by coool - 11.01.2017, 15:02
Re: Capture zones problem rep+ - by darkdrago - 11.01.2017, 15:19
Re: Capture zones problem rep+ - by Logic_ - 11.01.2017, 16:10
Re: Capture zones problem rep+ - by Mijata - 12.01.2017, 18:11
Re: Capture zones problem rep+ - by darkdrago - 12.01.2017, 19:05
Re: Capture zones problem rep+ - by Mijata - 12.01.2017, 20:03
Re: Capture zones problem rep+ - by Logic_ - 13.01.2017, 12:30
Re: Capture zones problem rep+ - by darkdrago - 13.01.2017, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)