Help Army Base
#1

Code:
	new Gate: 

	Gate = CreateObject(971,2720.19995117,-2405.50000000,16.00000000,0.00000000,0.00000000,269.99996948); //object(subwaygate)(1)

	if(strcmp(cmd, "/open", true) == 0) (
	MoveObject(Gate, 971,2720.19995117,-2405.50000000,8.30000019,0.00000000,0.00000000,270.00000000, 1);
	SendClientMessage(playerid, COLOR_YELLOW, "THe Army Base Gate Is Open.");
	return 1;
	}

	CreateObject(971,2720.19995117,-2405.50000000,16.00000000,0.00000000,0.00000000,269.99996948); //Close Gate

	if(strcmp(cmd, "/close", true) == 0) (
	MoveObject(Gate, 971,2720.19995117,-2405.50000000,16.00000000,0.00000000,0.00000000,269.99996948, 1);
	SendClientMessage(playerid, COLOR_YELLOW, "THe Army Base Gate Is Close.");
	return 1;
	}

	AddStaticVehicleEx(433,2742.39990234,-2472.30004883,14.19999981,272.00000000,-1,-1,15); //Barracks
	AddStaticVehicleEx(433,2742.19995117,-2467.30004883,14.19999981,269.99951172,-1,-1,15); //Barracks
	AddStaticVehicleEx(433,2742.00000000,-2462.60009766,14.19999981,269.99450684,-1,-1,15); //Barracks
	AddStaticVehicleEx(433,2741.80004883,-2458.39990234,14.19999981,269.99450684,-1,-1,15); //Barracks
	AddStaticVehicleEx(470,2744.19995117,-2448.60009766,13.80000019,0.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2747.69995117,-2448.69995117,13.80000019,0.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2742.10009766,-2439.60009766,13.80000019,266.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2742.00000000,-2443.60009766,13.80000019,265.99548340,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2748.19995117,-2444.00000000,13.80000019,265.99548340,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2748.30004883,-2440.00000000,13.80000019,265.99548340,-1,-1,15); //Patriot
	AddStaticVehicleEx(468,2734.80004883,-2431.39990234,13.39999962,320.00000000,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2735.19995117,-2428.69995117,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2735.30004883,-2425.69995117,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2735.19995117,-2422.19995117,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2737.80004883,-2431.60009766,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2738.19995117,-2428.60009766,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2738.60009766,-2425.89990234,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(468,2738.69995117,-2423.19995117,13.39999962,319.99877930,-1,-1,15); //Sanchez
	AddStaticVehicleEx(425,2796.10009766,-2339.69995117,14.50000000,0.00000000,-1,-1,15); //Hunter
	AddStaticVehicleEx(425,2789.80004883,-2357.60009766,14.50000000,0.00000000,-1,-1,15); //Hunter
	AddStaticVehicleEx(425,2764.30004883,-2353.60009766,14.50000000,0.00000000,-1,-1,15); //Hunter
	AddStaticVehicleEx(425,2780.00000000,-2342.10009766,14.50000000,0.00000000,-1,-1,15); //Hunter
	AddStaticVehicleEx(425,2743.10009766,-2339.19995117,14.50000000,88.00000000,-1,-1,15); //Hunter
	AddStaticVehicleEx(432,2729.50000000,-2496.30004883,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(432,2729.30004883,-2491.10009766,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(432,2743.00000000,-2496.10009766,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(432,2742.80004883,-2490.89990234,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(432,2728.89990234,-2508.80004883,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(432,2740.10009766,-2508.39990234,13.80000019,270.00000000,-1,-1,15); //Rhino
	AddStaticVehicleEx(548,2793.19995117,-2534.89990234,15.50000000,0.00000000,-1,-1,15); //Cargobob
	AddStaticVehicleEx(417,2773.00000000,-2553.50000000,12.60000038,88.00000000,-1,-1,15); //Leviathan
	AddStaticVehicleEx(596,2738.60009766,-2389.10009766,13.50000000,179.99993896,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2735.00000000,-2388.69995117,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2742.00000000,-2388.89990234,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2746.30004883,-2388.80004883,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2750.80004883,-2388.80004883,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2734.80004883,-2395.19995117,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2738.80004883,-2395.60009766,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2742.30004883,-2396.00000000,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2746.30004883,-2396.39990234,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(596,2750.30004883,-2396.80004883,13.50000000,179.99450684,-1,1,15); //Police Car (LSPD)
	AddStaticVehicleEx(470,2768.30004883,-2405.80004883,13.80000019,99.99548340,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2767.69995117,-2401.00000000,13.80000019,99.99206543,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.50000000,-2409.50000000,13.80000019,99.99206543,-1,-1,15); //Patriot
	AddStaticVehicleEx(416,2766.30004883,-2385.19995117,13.89999962,180.00000000,-1,-1,15); //Ambulance
	AddStaticVehicleEx(416,2762.80004883,-2385.19995117,13.89999962,180.00000000,-1,-1,15); //Ambulance
	AddStaticVehicleEx(416,2766.69995117,-2393.30004883,13.89999962,180.00000000,-1,-1,15); //Ambulance
	AddStaticVehicleEx(416,2763.19995117,-2393.30004883,13.89999962,180.00000000,-1,-1,15); //Ambulance
	CreateObject(2933,205.50000000,1876.09997559,13.89999962,0.00000000,0.00000000,0.00000000); //object(pol_comp_gate) (1)
	CreateObject(3578,-1572.30004883,664.09997559,5.30000019,0.00000000,0.00000000,90.00000000); //object(dockbarr1_la) (1)
	CreateObject(987,2720.00000000,-2409.69995117,15.00000000,0.00000000,0.00000000,269.99996948); //object(elecfence_bar) (3)
	CreateObject(987,2720.60009766,-2389.19995117,15.00000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (4)
	CreateObject(987,2720.69995117,-2378.10009766,15.00000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (5)
	CreateObject(987,2720.39990234,-2487.60009766,15.00000000,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (6)
	CreateObject(987,2720.30004883,-2508.50000000,15.00000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (7)
	CreateObject(987,2699.50000000,-2329.89990234,12.30000019,0.00000000,0.00000000,179.99444580); //object(elecfence_bar) (8)
	CreateObject(987,2710.80004883,-2330.00000000,12.30000019,0.00000000,0.00000000,179.98901367); //object(elecfence_bar) (9)
	CreateObject(987,2699.19995117,-2340.39990234,12.30000019,0.00000000,0.00000000,269.98901367); //object(elecfence_bar) (10)
	CreateObject(987,2698.89990234,-2340.39990234,17.00000000,0.00000000,0.00000000,269.98901367); //object(elecfence_bar) (11)
	CreateObject(987,2699.30004883,-2329.39990234,12.50000000,0.00000000,0.00000000,269.98901367); //object(elecfence_bar) (12)
	CreateObject(987,2698.00000000,-2329.89990234,12.30000019,0.00000000,0.00000000,179.98901367); //object(elecfence_bar) (13)
	CreateObject(987,2726.80004883,-2565.39990234,12.60000038,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (14)
	CreateObject(987,2726.80004883,-2557.00000000,14.60000038,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (15)
	CreateObject(987,2745.89990234,-2565.69995117,12.39999962,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (16)
	CreateObject(987,2734.10009766,-2565.69995117,12.39999962,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (17)
	CreateObject(991,2774.50000000,-2454.10009766,13.89999962,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (1)
	CreateObject(991,2774.50000000,-2454.10009766,15.69999981,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (2)
	CreateObject(991,2774.60009766,-2458.10009766,13.69999981,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (3)
	CreateObject(991,2774.60009766,-2458.10009766,15.80000019,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (4)
	CreateObject(991,2798.60009766,-2443.39990234,14.50000000,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (5)
	CreateObject(991,2798.60009766,-2443.39990234,15.50000000,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (6)
	CreateObject(991,2798.10009766,-2468.39990234,14.50000000,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (7)
	CreateObject(991,2798.30004883,-2468.39990234,15.30000019,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (8)
	CreateObject(991,2774.30004883,-2491.80004883,13.89999962,0.00000000,0.00000000,88.00000000); //object(bar_barriergate1) (9)
	CreateObject(991,2774.30004883,-2491.80004883,15.89999962,0.00000000,0.00000000,87.99499512); //object(bar_barriergate1) (10)
	CreateObject(991,2774.50000000,-2496.50000000,13.89999962,0.00000000,0.00000000,87.99499512); //object(bar_barriergate1) (11)
	CreateObject(991,2774.50000000,-2496.50000000,15.89999962,0.00000000,0.00000000,87.99499512); //object(bar_barriergate1) (12)
	CreateObject(991,2798.69995117,-2506.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (13)
	CreateObject(991,2798.69995117,-2506.00000000,15.60000038,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (14)
	CreateObject(991,2798.39990234,-2481.80004883,14.60000038,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (15)
	CreateObject(991,2798.10009766,-2481.60009766,14.60000038,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (16)
	CreateObject(991,2798.39990234,-2481.69995117,14.10000038,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (17)
	CreateObject(991,2774.39990234,-2418.30004883,13.89999962,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (19)
	CreateObject(991,2774.39990234,-2418.30004883,16.20000076,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (20)
	CreateObject(991,2774.30004883,-2415.50000000,16.20000076,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (21)
	CreateObject(991,2774.30004883,-2415.50000000,14.00000000,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (22)
	CreateObject(991,2774.19995117,-2421.50000000,14.00000000,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (23)
	CreateObject(991,2774.19995117,-2421.50000000,16.00000000,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (24)
	CreateObject(991,2798.60009766,-2405.60009766,14.50000000,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (25)
	CreateObject(991,2798.60009766,-2405.60009766,15.30000019,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (26)
	CreateObject(991,2798.50000000,-2430.30004883,14.30000019,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (27)
	CreateObject(991,2798.50000000,-2430.30004883,15.10000038,0.00000000,0.00000000,0.00000000); //object(bar_barriergate1) (28)
	CreateObject(3934,2796.80004883,-2341.69995117,12.89999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (1)
	CreateObject(3934,2792.00000000,-2355.69995117,12.89999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (2)
	CreateObject(3934,2764.89990234,-2354.60009766,12.89999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (3)
	CreateObject(3934,2740.50000000,-2339.50000000,12.89999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (4)
	CreateObject(3934,2780.19995117,-2340.60009766,12.89999962,0.00000000,0.00000000,0.00000000); //object(helipad01) (5)
	CreateObject(987,2720.50000000,-2497.50000000,12.50000000,0.00000000,0.00000000,269.99450684); //object(elecfence_bar) (18)
it says
Code:
[18:16:56] Script[gamemodes/extremewarfare.amx]: Run time error 17: "Invalid/unsupported P-code file format"
[18:16:56] Failed to load 'gamemodes/extremewarfare.amx' script.
i Create This MAP but gone wrong i think someone Help
i need fixed version i think it the command gone wrong
Reply
#2

Where have you placed the code? If undergamemodeinit, then.. the commands dont belong there, put them under onplayercommandtext.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)