Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward GateCheck();
- public GateCheck()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(IsPlayerInRangeOfPoint(i, 10.0, 2641.8201, 2810.6196, 36.3222))
- {
- MoveObject(AutomaticGate, 1811.4591, -1894.3032, 13.2392, 5.0);
- }
- else
- {
- MoveObject(AutomaticGate, 1811.4558, -1894.2816, 12.4562, 5.0);
- }
- }
- }
- }
- SetTimer("GateCheck", 1000, true);
- AutomaticGate = CreateObject(968, 1811.4591, -1894.3032, 13.2392, 0, 0, 0);
- new AutomaticGate;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement