Time doubles speed when 2 players online.
#6

Quote:
Originally Posted by PlayON
Done what you told me.
This is how it looks like now...

COMMAND:
pawn Код:
if(HEALTHTIMER[playerid] == 1)
      {
                SendClientMessage(playerid, COLOR_RED, "This command can be used again after 1 minute");
                return 1;
      }
        new Float:HHEALTH;
            GetPlayerHealth(playerid, HHEALTH);
            SetPlayerHealth(playerid, HHEALTH+50);
            GameTextForPlayer(playerid, "~g~~h~Healed~w~!", 3000, 1);
            //SetTimerEx("NewbieH", 60000, false, "i", playerid);//1 MINUTES
            CountDownTrue = 1;
        CountDownMinutes[playerid] = 1; //in minutes
            CountDownSeconds[playerid] = 1; //in seconds
            HEALTHTIMER[playerid] = 1;
           
            format(string, sizeof(string), "%d:%d", CountDownMinutes[playerid], CountDownSeconds[playerid]);
            TextDrawSetString(Text:CountText2, string);
            TextDrawShowForPlayer(playerid,CountText2);
            SetTimer("CountDownTimer", 1000, 0);
       }
TEXTDRAW:
pawn Код:
public CountDownTimer(playerid)
{
  if (CountDownTrue == 1)
    {
        CountDownSeconds[playerid]--;
        if (CountDownSeconds[playerid] == 0)
        {
          CountDownSeconds[playerid] = 60;
          if (CountDownMinutes[playerid] == 0)
            {
                CountDownTrue = 0;
                TextDrawHideForPlayer(playerid, CountText2);
                HEALTHTIMER[playerid] = 0;
            }
            CountDownMinutes[playerid]--;
        }
        new string[256];
      format(string, sizeof(string), "%d:%d", CountDownMinutes[playerid], CountDownSeconds[playerid]);
        TextDrawSetString(Text:CountText2, string);
        SetTimer("CountDownTimer", 1000, 0);
        return 1;
    }
    return 1;
}
And still doesn't works
do i have to do MAX_PLAYERS with CountDownTrue too?
Yep, everything. Because it's for each player apart. If you use one variable over 500 players it will bug =D.
Can you send me the FS/GM ?
Reply


Messages In This Thread
Time doubles speed when 2 players online. - by Zh3r0 - 10.04.2010, 10:21
Re: Time doubles speed when 2 players online. - by RyDeR` - 10.04.2010, 10:29
Re: Time doubles speed when 2 players online. - by Zh3r0 - 10.04.2010, 10:31
Re: Time doubles speed when 2 players online. - by RyDeR` - 10.04.2010, 10:33
Re: Time doubles speed when 2 players online. - by Zh3r0 - 10.04.2010, 10:52
Re: Time doubles speed when 2 players online. - by RyDeR` - 10.04.2010, 11:18
Re: Time doubles speed when 2 players online. - by Zh3r0 - 10.04.2010, 11:19
Re: Time doubles speed when 2 players online. - by RyDeR` - 10.04.2010, 11:35
Re: Time doubles speed when 2 players online. - by Zh3r0 - 10.04.2010, 11:36
Re: Time doubles speed when 2 players online. - by RyDeR` - 10.04.2010, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)