SA-MP Forums Archive
[Map] Prison with moveable gates. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Maps (https://sampforum.blast.hk/forumdisplay.php?fid=64)
+---- Thread: [Map] Prison with moveable gates. (/showthread.php?tid=517396)



Prison with moveable gates. - Turbo1337 - 04.06.2014

Prison with opening and closing cells. (This is not a tutorial just provides people with some info for the open doors and closed doors cords.)







Код:
new
	prisondoor1,
	prisondoor2,
	prisondoor3,
	prisondoor4,
	prisondoor5,
	prisondoor6,
	prisondoor7,
	prisondoor8;

forward PrisonDoorOpen(playerid);
public PrisonDoorOpen(playerid)
{
	MoveDynamicObject(prisondoor1, 159.69551, 1738.71692, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor2, 159.75327, 1735.27600, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor3, 159.71895, 1731.85657, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor4, 159.70769, 1728.51855, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor5, 159.68394, 1728.53931, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor6, 159.71956, 1731.92188, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor7, 159.72060, 1735.28516, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor8, 159.69780, 1738.71509, 2003.78149,3.5000);
	return 1;
}
forward PrisonDoorClose(playerid);
public PrisonDoorClose(playerid)
{
	MoveDynamicObject(prisondoor1, 159.70393, 1737.01758, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor2, 159.72600, 1733.68372, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor3, 159.70888, 1730.33508, 2001.28003,3.5000);
	MoveDynamicObject(prisondoor4, 159.69783, 1727.01270, 2001.28003, 3.5000);
	MoveDynamicObject(prisondoor5, 159.68260, 1727.01880, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor6, 159.67546, 1730.34082, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor7, 159.70621, 1733.70337, 2003.78149,3.5000);
	MoveDynamicObject(prisondoor8, 159.68568, 1737.02539, 2003.78149,3.5000);
	return 1;
}

OnGameModeInIt stuff
	prisondoor1 = CreateDynamicObject(19303, 159.70393, 1737.01758, 2001.28003,   0.00000, 0.00000, 90.00000);
	prisondoor3 = CreateDynamicObject(19303, 159.70888, 1730.33508, 2001.28003,   0.00000, 0.00000, 90.00000);
	prisondoor5 = CreateDynamicObject(19303, 159.68260, 1727.01880, 2003.78149,   0.00000, 0.00000, 90.00000);
	prisondoor6 = CreateDynamicObject(19303, 159.67546, 1730.34082, 2003.78149,   0.00000, 0.00000, 90.00000);
	prisondoor4 = CreateDynamicObject(19303, 159.69783, 1727.01270, 2001.28003,   0.00000, 0.00000, 90.00000);
	prisondoor2 = CreateDynamicObject(19303, 159.72600, 1733.68372, 2001.28003,   0.00000, 0.00000, 90.00000);
	prisondoor7 = CreateDynamicObject(19303, 159.70621, 1733.70337, 2003.78149,   0.00000, 0.00000, 90.00000);
	prisondoor8 = CreateDynamicObject(19303, 159.68568, 1737.02539, 2003.78149,   0.00000, 0.00000, 90.00000);
Код:
CreateDynamicObject(8417, 160.07202, 1732.99597, 2000.00000,   0.00000, 180.00000, 89.88000);
	CreateDynamicObject(19437, 159.70061, 1725.36987, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.69000, 1728.67004, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.69501, 1732.01001, 2000.77905,   0.00000, 0.00000, 0.36000);
	CreateDynamicObject(19437, 159.70000, 1735.36584, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.69000, 1738.70740, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19364, 158.01300, 1725.37622, 2000.77905,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1728.64038, 2000.77905,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1731.92114, 2000.77905,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1735.39844, 2000.77905,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1738.70154, 2000.77905,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(8417, 141.54559, 1732.99536, 2002.56006,   0.00000, 0.00000, 90.06000);
	CreateDynamicObject(19437, 159.69000, 1728.67004, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.69501, 1732.01001, 2004.28003,   0.00000, 0.00000, 0.36000);
	CreateDynamicObject(19437, 159.70061, 1725.36987, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.70000, 1735.36584, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19437, 159.69000, 1738.70740, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19364, 158.01300, 1738.70154, 2004.28003,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1735.39844, 2004.28003,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1731.92114, 2004.28003,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1728.64038, 2004.28003,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(19364, 158.01300, 1725.37622, 2004.28003,   0.00000, 0.00000, 90.12000);
	CreateDynamicObject(8417, 139.78999, 1733.07349, 2005.06006,   0.00000, 0.00000, 90.00000);
	CreateDynamicObject(8417, 179.78999, 1733.06995, 2005.06006,   0.00000, 0.00000, 90.00000);
	CreateDynamicObject(19456, 156.35001, 1733.96985, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19456, 156.34900, 1724.33997, 2000.77905,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19456, 156.35001, 1733.96985, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19456, 156.34900, 1724.33997, 2004.28003,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(19456, 164.42999, 1724.47986, 2000.77905,   0.00000, 0.00000, 90.00000);
	CreateDynamicObject(19456, 164.42999, 1724.47986, 2004.28003,   0.00000, 0.00000, 90.00000);
	CreateDynamicObject(19456, 164.41800, 1739.59998, 2000.77905,   0.00000, 0.00000, 90.18000);
	CreateDynamicObject(19456, 164.41800, 1739.59998, 2004.28003,   0.00000, 0.00000, 90.18000);
	CreateDynamicObject(19456, 169.33000, 1729.20801, 2000.77905,   0.00000, 0.00000, 0.12000);
	CreateDynamicObject(19456, 169.33000, 1729.20801, 2004.28003,   0.00000, 0.00000, 0.12000);
	CreateDynamicObject(19456, 169.31200, 1738.84302, 2000.77905,   0.00000, 0.00000, 0.12000);
	CreateDynamicObject(19456, 169.31200, 1738.84302, 2004.28003,   0.00000, 0.00000, 0.12000);
	CreateDynamicObject(8614, 162.45000, 1726.91101, 2001.29895,   0.00000, 0.00000, 90.00000);
	CreateDynamicObject(970, 161.49899, 1728.28003, 2003.08496,   0.00000, 0.00000, 270.00000);
	CreateDynamicObject(970, 161.49899, 1732.44922, 2003.08496,   0.00000, 0.00000, 269.94000);
	CreateDynamicObject(970, 161.51010, 1736.60999, 2003.08496,   0.00000, 0.00000, 269.94000);
	CreateDynamicObject(970, 161.49899, 1740.78003, 2003.08496,   0.00000, 0.00000, 269.94000);
	CreateDynamicObject(1508, 169.35680, 1732.38269, 2001.68994,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(1594, 163.30438, 1737.05530, 2000.49670,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(1594, 166.99608, 1737.09937, 2000.49670,   0.00000, 0.00000, 0.00000);
	CreateDynamicObject(1216, 168.07196, 1724.86694, 2000.70276,   0.00000, 0.00000, 180.00000);
	CreateDynamicObject(1216, 164.95956, 1724.91003, 2000.70276,   0.00000, 0.00000, 180.00000);



Re: Prison with moveable gates. - JonathanW - 05.06.2014

Lovely,what's th floor's ID buddy?


Re: Prison with moveable gates. - Mckarlis - 05.06.2014

Nice job


Re: Prison with moveable gates. - Turbo1337 - 06.06.2014

Not too sure. Don't even have map editor on this computer. Had this laying around in an old script.