Posts: 220
Threads: 62
Joined: Aug 2009
How to make an Automatic Gate?
I tried this but it didnt work.
if(IsPlayerInRangeOfPoint(25,playerid,-1631.78, 688.24, 8.6
)
{
MoveObject(Vartaii,-1631.78, 688.24, 8.68,3);
return 1;
}
Posts: 220
Threads: 62
Joined: Aug 2009
if(IsPlayerInRangeOfPoint(playerid, 25, -1631.78, 688.24, 8.6
)
{
MoveObject(Vartaii, -1631.78, 688.24, 15.68,3);
return 1;
}
Still doesnt work. Maybe i need to add a timer or something?
Posts: 220
Threads: 62
Joined: Aug 2009
C:\Documents and Settings\Kompiuteris\Desktop\Kuriamas\gamemodes\GR P.pwn(16013) : error 030: compound statement not closed at the end of file (started at line 1600
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
public GateTimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 25, -1631.78, 688.24, 68.6))
{
MoveObject(Vartaii, -1631.78, 688.24, 15.68,3);
return 1;
}
Posts: 220
Threads: 62
Joined: Aug 2009
Oh its works! Thanks!
But now i need a closing fuction.
MoveObject(Vartaii, -1631.78, 688.24, 8.68, 3);
Posts: 740
Threads: 63
Joined: Oct 2009
Reputation:
0
You gave me the same Move object.. Give me the CreateObject