Gates not working
#1

hey all i have gates but they wont move this is my code

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
new gate; // use it on the top of the script!!
new gate1;
public OnFilterScriptInit()
{
	gate = CreateObject(980, 1792.6700439453, -1284.7282714844, 15.406204223633, 0, 0, 0); //GATE!
	CreateObject(987, 1798.8885498047, -1296.3529052734, 12.544774055481, 0, 0, 94);
	CreateObject(987, 1776.6673583984, -1290.5843505859, 12.6328125, 0, 0, 271.9990234375);
	CreateObject(980, 1792.6700439453, -1284.7282714844, 15.406204223633, 0, 0, 0);
	CreateObject(987, 1787.1528320313, -1284.6828613281, 12.752249717712, 0, 0, 209.99401855469);
	CreateObject(638, 1770.9407958984, -1302.5523681641, 49.126628875732, 0, 0, 180);
	CreateObject(16151, 1817.3671875, -1294.1584472656, 48.787979125977, 0, 0, 0);
	CreateObject(1978, 1826.3927001953, -1271.7930908203, 49.445430755615, 0, 0, 0);
	CreateObject(2188, 1825.5853271484, -1291.2224121094, 49.374271392822, 0, 0, 92);
	CreateObject(2785, 1824.7265625, -1298.9467773438, 49.250728607178, 0, 0, 88);
	CreateObject(2773, 1824.6099853516, -1289.9552001953, 48.946002960205, 0, 0, 88.25);
	CreateObject(2773, 1824.6708984375, -1292.3682861328, 48.943355560303, 0, 0, 88.247680664063);
	CreateObject(3881, 1800.3692626953, -1281.5466308594, 14.48787689209, 0, 0, 0);
	gate1 = CreateObject(980, 1788.2348632813, -1298.3057861328, 14.098407745361, 0, 0, 0); //GATE2!
	CreateObject(987, 1805.8101806641, -1298.9328613281, 12.355841636658, 0, 0, 178);
	CreateObject(987, 1782.4714355469, -1298.142578125, 12.375, 0, 0, 177.99499511719);


	
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}



public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
 if(strcmp(cmdtext, "/open", true) == 0)
	{
         MoveObject(gate,1792.6700439453, -1284.7282714844, 15.406204223633, 0, 0, 0); //GATE!// You need to get the gate coordinates using samp debug and /save or to any server use /save name for the coordinates or the place that you want the gate go on
         SendClientMessage(playerid, COLOR_RED, "The gate is open");
         return 1;
}
 if(strcmp(cmdtext, "/close", true) == 0)
	{
        MoveObject(gate, 1792.6700439453, -1284.7282714844, 8.7312259674072, 0, 0, 0);
        SendClientMessage(playerid, COLOR_RED, "The Gate Is closed Now");
        return 1;
}
 if(strcmp(cmdtext, "/open1", true) == 0)
	{
         MoveObject(gate1,1799.7746582031, -1298.7623291016, 14.098407745361, 0, 0, 0); //GATE!// You need to get the gate coordinates using samp debug and /save or to any server use /save name for the coordinates or the place that you want the gate go on
         SendClientMessage(playerid, COLOR_RED, "The gate is open");
         return 1;
}
 if(strcmp(cmdtext, "/close1", true) == 0)
	{
        MoveObject(gate1,  1788.2348632813, -1298.3057861328, 14.098407745361, 0, 0, 0);
        SendClientMessage(playerid, COLOR_RED, "The Gate Is closed Now");
        return 1;
}
	return 0;
}
#endif
whats wrong with this all??
help please.

Ty for helping me out

-luckie12
Reply


Messages In This Thread
Gates not working - by luckie12 - 08.01.2011, 08:46
Re: Gates not working - by luckie12 - 08.01.2011, 11:53
Re: Gates not working - by Kyosaur - 08.01.2011, 12:01
Re: Gates not working - by Karlip - 08.01.2011, 12:02
Re: Gates not working - by Kyosaur - 08.01.2011, 12:07
Re: Gates not working - by luckie12 - 08.01.2011, 12:35
Re: Gates not working - by Karlip - 08.01.2011, 12:38
Re: Gates not working - by luckie12 - 08.01.2011, 12:49
Re: Gates not working - by LZLo - 08.01.2011, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)