25.10.2009, 21:07
Код:
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++; } }