Why this Wont work!
#2

Код:
public Refill()
{
   foreach(Player, i)
   { 
       if(PlayerToPoint(1, i, -242.6534,2811.0254,62.1717))
       {
           if(RefillArea[i] == 0 && wentinsidetp == false)
           {
              if(Team[i] == trucker)
              {
                  TextDrawShowForPlayer(i, refillTake[i]);
                  RefillArea[i] = 1;
                  wentinsidetp = true;
              }
              else
              {
                  wentinsidetp = true;
                  new str[128], name[MAX_PLAYER_NAME];
                  GetPlayerName(i, name, sizeof(name));
                  format(str, sizeof(str), "%s is refilling his truck", name);
                  SendClientMessageToAll(COLOR_ORANGE,str);
                  RefillArea[i] = 1;
                  SendClientMessage(i,COLOR_CON_GREEN, "*Stay In here for 25 seconds to refill your truck");
                  Timerefill[i] = SetTimer("refillend",25000,0);
                  }
              }
         }
         else
         {
            RefillArea[i] = 0;
            KillTimer(Timerefill[i]);
            wentinsidetp = false;
            TextDrawHideForPlayer(i, refillTake[i]);
            }
        }
        return 1;
}
Reply


Messages In This Thread
Why this Wont work! - by Unknown_Killer - 26.06.2011, 15:20
Re: Why this Wont work! - by Skaizo - 26.06.2011, 16:47
Re: Why this Wont work! - by Unknown_Killer - 26.06.2011, 17:40
Re: Why this Wont work! - by Skaizo - 26.06.2011, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)