Constant gate moving
#3

This is entire code no object appearing
Код:
 
#include <a_samp>

#if defined FILTERSCRIPT
#endif
new gate1;
new gate1_status;

public OnFilterScriptInit()
{
		
        print("\n--------------------------------------");
        print(" n--------------n");
        print("--------------------------------------\n");
    
     	gate1_status = 1;
        MoveObject(gate1, -50.402030,1829.453125,19.898818, 2.5);
		gate1 = CreateObject(19277,-50.402030,1829.453125,19.898818,0.0000000,0.0000000,0.0000000);

        

}
public OnObjectMoved(objectid)
{	
	if(objectid == gate1)
	{
		if(gate1_status == 1)
		{
			MoveObject(gate1, -50.402030, 1829.45312, 28.398838, 2.5);
			gate1_status = 0;
		}
		else
		{
			MoveObject(gate1, -50.402030,1829.453125,19.898818, 2.5);
			gate1_status = 1;
		}
	}
	return 1;
	}
Reply


Messages In This Thread
Constant gate moving - by Mughees - 26.04.2017, 17:48
Re: Constant gate moving - by raydx - 27.04.2017, 07:54
Re: Constant gate moving - by Mughees - 27.04.2017, 13:26

Forum Jump:


Users browsing this thread: 2 Guest(s)