[HELP] Automatic Gates
#4

Quote:

#include <a_samp>

#if defined FILTERSCRIPT


forward GateCheck();
new mygate;



public OnFilterscriptInit()

{
mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0);
SetTimer("GateCheck",1000,1);
}


public GateCheck()
{
new openmygate;
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)openmygate=1; //object coordinate
if(openmygate)MoveObject(mygate,2063.2507, -2600.1677, 8.5313); //open object coordinates
else MoveObject(mygate,2063.2603, -2600.1406, 16.5461); //closed object coordinates
}

#endif



No errors , no warning and not good!
Reply


Messages In This Thread
[HELP] Automatic Gates - by Coltt29 - 03.12.2009, 16:51
Re: [HELP] Automatic Gates - by Rzzr - 03.12.2009, 17:40
Re: [HELP] Automatic Gates - by Joe Staff - 03.12.2009, 22:41
Re: [HELP] Automatic Gates - by Coltt29 - 04.12.2009, 13:23
Re: [HELP] Automatic Gates - by Joe Staff - 04.12.2009, 17:59
Re: [HELP] Automatic Gates - by Coltt29 - 04.12.2009, 18:16
Re: [HELP] Automatic Gates - by Joe Staff - 04.12.2009, 19:17
Re: [HELP] Automatic Gates - by Coltt29 - 05.12.2009, 12:58

Forum Jump:


Users browsing this thread: 3 Guest(s)