forward gateZ(playerid); forward gateX(playerid); CreateObject(8210, 2624.068359, -2084.827148, 14.847914, 0.0000, 0.0000, 270); CreateObject(8263, 2483.800781, -2066.036865, 21.380026, 0.0000, 0.0000, 180); SaR2 = CreateObject(972, 2580.255859, -2108.114746, 0.376136, 0.0000, 0.0000, 270); //Gate 1 Set Z In Moving Object (Z-10) SaR3 = CreateObject(8263, 2586.666992, -2247.356689, 1.669191, 0.0000, 0.0000, 0); //Gate 1 Set Z In Moving Object (Z-10) SaR1 = CreateObject(8210, 2424.307861, -2093.246094, 14.122925, 0.0000, 0.0000, 270); // Gate 2 Set Z In Moving Object (Z-10) CreateObject(5822, 2529.352539, -2113.436035, 20.696413, 0.0000, 0.0000, 180); CreateObject(7388, 2431.269531, -2127.328369, 27.054249, 0.0000, 0.0000, 0); CreateObject(3279, 2429.289063, -2103.357910, 12.347496, 0.0000, 0.0000, 0); CreateObject(8154, 2582.539795, -2085.649170, 14.072908, 0.0000, 0.0000, 270); CreateObject(8263, 2681.380859, -2065.719971, 21.235182, 0.0000, 0.0000, 180); if(strcmp(cmd, "/Gopen", true) == 0) { MoveObject(SaR1, 2424.382568, -2092.748047, 5.647902, 2.5); SetTimerEx("gateZ",7000, 0, "i", playerid); return 1; } if(strcmp(cmd, "/Dopen", true) == 0) { MoveObject(SaR2,2580.255859, -2108.114746, -10.376136, 2.5); MoveObject(SaR3,2586.666992, -2247.356689, -10.669191, 2.5); SetTimerEx("gateX",7000, 0, "i", playerid); return 1; } //=========================[gateX]======================================== public gateX(playerid) { MoveObject(SaR2,2580.255859, -2108.114746, 0.376136,2.5); MoveObject(SaR3,2586.666992, -2247.356689, 1.669191,2.5); return 1; } //=========================[gateF]======================================== public gateZ(playerid) { MoveObject(SaR1,2424.382568, -2092.748047, 15.647902,2.5); return 1; }