#1

How do i set a Timer to check the Player's Position for a Automatic gate?
I only need this, dont gimme a link to the Tutorial on samp wiki, as im gonna use a different way
Reply
#2

Quote:
Originally Posted by laserhel50
I only need this, dont gimme a link to the Tutorial on samp wiki, as im gonna use a different way
Lol'ed heavily. You are asking for a help to set single timer which is explained on wiki and then you say don't tell you about wiki tutorial since you are going to do it in a different way. We can't help you if we don't know your "different" way.

And I wouldn't use timer for this, but OnPlayerUpdate with ticks.
Reply
#3

Can't find it :/
Reply
#4

cmon, help xD i cant continue scripting
Reply
#5

Read what $ЂЯĢ said.
If you are using a timer, just look at the wiki tutorial.
Otherwise you need to explain what this other way is or we can't help you.
Reply
#6

Код:
public AutoGates(playerid);
	SetTimer("GateTimer", 1000, true);
  if(IsPlayerInRangeOfPoint(playerid, 15.0, 1584.7135009766, -1637.9886474609, 12.379525184631))
  MoveObject(PDG, 1584.732421875, -1637.9846191406, 12.379920959473, 7.0);
  SetTimer("gateClose", 15000, false);
  MoveObject(PDG, 1584.7135009766, -1637.9886474609, 12.379525184631, 7.0);
return 1;
}
it gotta work if i get the timer workin
Reply
#7

cmon...
Reply
#8

http://joestaff.wikispaces.com/Automatic+Gates
Reply
#9

This might work.
Код:
public AutoGates(playerid);
  if(IsPlayerInRangeOfPoint(playerid, 15.0, 1584.7135009766, -1637.9886474609, 12.379525184631))
  MoveObject(PDG, 1584.732421875, -1637.9846191406, 12.379920959473, 7.0);
  SetTimer("gateClose", 15000, false);
return 1;
}

forward gateClose(playerid);
public gateClose(playerid)
{
MoveObject(PDG, 1584.7135009766, -1637.9886474609, 12.379525184631, 7.0);
return 1;
}
Reply
#10

https://sampwiki.blast.hk/wiki/Automatic_Gates
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)