Why won't this timer script work?
#1

Код:
SetTimer("hackingdoor",1000,1);
SetTimer("Timer",100,1);
public Timer()
{		
         if(PlayerToPoint(3,playerid, 297.79, 1858.51, 6.77) && door3 == 0)
		{
   		GameTextForPlayer(playerid,"~g~HACKING DOOR(30 sec)",10,3);
   		hacking = 1;
		}
		else hacking = 0;
}

public hackingdoor()
{
	if(time >= 30)
	{
	  GameTextForPlayer(pilot,"~r~SECURITY BREACH!",3000,3);
	  MoveObject(gate2,297.79, 1858.51, 9.99,5);
		door3 = 1;
		time = 0;
		hacking = 0;
	}
	if(hacking == 1)
	{
	  time++;
	}
}
It says hacking door but the door never opens...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)