28.05.2009, 17:59
How would i add this code onto a timer
I tried this but i got 4 errors
If you would like to see the errors i'd be happy to give,
But how would i put that code onto public BenGate(playerid)?
As it checks every 1 milisecond to see if anyone is in that position,
If they are it opens the gate
pawn Код:
if(PlayerToPoint(5.0,playerid,1245.5468,-767.7892,91.9618))
{
MoveObject(gate, 1245.535767, -767.239685, 86.785072, 2);
{
pawn Код:
public BenGate(playerid)
{
if(PlayerToPoint(5.0,playerid,1245.5468,-767.7892,91.9618))
{
MoveObject(gate, 1245.535767, -767.239685, 86.785072, 2);
}
}
But how would i put that code onto public BenGate(playerid)?
As it checks every 1 milisecond to see if anyone is in that position,
If they are it opens the gate