27.05.2013, 04:24
I created this command.. every time I enter a given choice, it just returns the Usage message.
Код:
CMD:tp(playerid, params[]) { new option[128]; if(PlayerInfo[playerid][pAdmin] > 1338) return SCM(playerid, COLOR_GREY, "unauthorized"); { if(!sscanf(params,"s", option)) return SCM(playerid, COLOR_GREY, "Usage: /tp [place]"); SCM(playerid, 0x00CCFFFF, "|_________________________Available Teleports__________________________|"); SCM(playerid, COLOR_GREY, "[Four dragons office][Ganton Gym][Brothel][Brothel2][Inside Track]"); SCM(playerid, COLOR_GREY, "[Warehouse1][Warehouse2][Barber][Planning Dept][LVPD][Idlestack]"); SCM(playerid, COLOR_GREY, "[Diner1][Ammunation][SFPD][Bedroom1][Stadium1][Stadium2][PigPen]"); SCM(playerid, COLOR_GREY, "[Four Dragons][LC][Ryder][Sweet][RC field][CJ][Caligulas][Madd dog]"); SCM(playerid, COLOR_GREY, "[Crack House][Stadium3][Club][Atrium][Jefferson Motel][House 1][House 2]"); SCM(playerid, COLOR_GREY, "[House 3][House 4][House 5][House 6][House 7][House 8][House 9][House 10]"); SCM(playerid, COLOR_GREY, "[House 11][House 12][House 13][House 14][House 15][House 16][House 17]"); SCM(playerid, COLOR_GREY, "[Palomino Bank][Palomino Diner][Lil probe][Stadium4][DMV]"); { if(!strcmp(option, "Four dragons office", true)) { SetPlayerPos(playerid, 2003.1178, 1015.1948, 33.008); } if(!strcmp(option, "Ganton Gym", true)) { SetPlayerPos(playerid, 770.8033, -0.7033, 1000.7267); } if(!strcmp(option, "Brothel", true)) { SetPlayerPos(playerid, 974.0177, -9.5937, 1001.1484); } if(!strcmp(option, "Brothel2", true)) { SetPlayerPos(playerid, 961.9308, -51.9071, 1001.1172); } if(!strcmp(option, "Inside Track", true)) { SetPlayerPos(playerid, 830.6016, 5.9404, 1004.1797); } if(!strcmp(option, "Warehouse1", true)) { SetPlayerPos(playerid, 1290.4106, 1.9512, 1001.0201); } if(!strcmp(option, "Warehouse2", true)) { SetPlayerPos(playerid, 1412.1472, -2.2836, 1000.9241); } if(!strcmp(option, "Barber", true)) { SetPlayerPos(playerid, 418.4666, -80.4595, 1001.8047); } if(!strcmp(option, "Planning Dept", true)) { SetPlayerPos(playerid, 386.5259, 173.6381, 1008.3828); } if(!strcmp(option, "LVPD", true)) { SetPlayerPos(playerid, 288.4723, 170.0647, 1007.1794); } if(!strcmp(option, "Diner1", true)) { SetPlayerPos(playerid, 454.9853, -107.2548, 999.4376); } if(!strcmp(option, "Idlestack", true)) { SetPlayerPos(playerid, 372.5565, -131.3607, 1001.4922); } if(!strcmp(option, "Ammunation", true)) { SetPlayerPos(playerid, 315.244, -140.8858, 999.6016); } if(!strcmp(option, "SFPD", true)) { SetPlayerPos(playerid, 246.0688, 108.9703, 1003.2188); } if(!strcmp(option, "Bedroom1", true)) { SetPlayerPos(playerid, 245.2307, 304.7632, 999.1484); } if(!strcmp(option, "Stadium1", true)) { SetPlayerPos(playerid, -1402.6613, 106.3897, 1032.2734); } if(!strcmp(option, "Stadium2", true)) { SetPlayerPos(playerid, -1403.0116, -250.4526, 1043.5341); } if(!strcmp(option, "PigPen", true)) { SetPlayerPos(playerid, 1204.6689, -13.5429, 1000.9219); } if(!strcmp(option, "Four Dragons", true)) { SetPlayerPos(playerid, 2016.1156, 1017.1541, 996.875); } if(!strcmp(option, "LC", true)) { SetPlayerPos(playerid, -741.8495, 493.0036, 1371.9766); } if(!strcmp(option, "Ryder", true)) { SetPlayerPos(playerid, 2447.8704, -1704.4509, 1013.5078); } if(!strcmp(option, "Sweet", true)) { SetPlayerPos(playerid, 2527.0176, -1679.2076, 1015.4986); } if(!strcmp(option, "RC field", true)) { SetPlayerPos(playerid, -1129.8909, 1057.5424, 1346.4141); } if(!strcmp(option, "CJ", true)) { SetPlayerPos(playerid, 2496.0549, -1695.1749, 1014.7422); } if(!strcmp(option, "Caligulas", true)) { SetPlayerPos(playerid, 2233.9363, 1711.8038, 1011.6312); } if(!strcmp(option, "Madd dog", true)) { SetPlayerPos(playerid, 1267.8407, -776.9587, 1091.9063); } if(!strcmp(option, "Crack House", true)) { SetPlayerPos(playerid, 2536.5322, -1294.8425, 1044.125); } if(!strcmp(option, "Stadium3", true)) { SetPlayerPos(playerid, -1420.4277, 1616.9221, 1052.5313); } if(!strcmp(option, "Club", true)) { SetPlayerPos(playerid, 493.1443, -24.2607, 1000.6797); } if(!strcmp(option, "Atrium", true)) { SetPlayerPos(playerid, 1727.2853, -1642.9451, 20.2254); } if(!strcmp(option, "Jefferson Motel", true)) { SetPlayerPos(playerid, 2217.281, -1150.5349, 1025.7969); } if(!strcmp(option, "House 1", true)) { SetPlayerPos(playerid, 234.6087, 1187.8195, 1080.2578); } if(!strcmp(option, "House 2", true)) { SetPlayerPos(playerid, 225.5707, 1240.0643, 1082.1406); } if(!strcmp(option, "House 3", true)) { SetPlayerPos(playerid, 224.288, 1289.1907, 1082.1406); } if(!strcmp(option, "House 4", true)) { SetPlayerPos(playerid, 239.2819, 1114.1991, 1080.9922); } if(!strcmp(option, "Stadium4", true)) { SetPlayerPos(playerid, -1417.8927, 932.4482, 1041.5313); } if(!strcmp(option, "Palomino Bank", true)) { SetPlayerPos(playerid, 2306.3826, -15.2365, 26.7496); } if(!strcmp(option, "Palomino Diner", true)) { SetPlayerPos(playerid, 2331.8984, 6.7816, 26.5032); } if(!strcmp(option, "Dillimore Gas", true)) { SetPlayerPos(playerid, 663.0588, -573.6274, 16.3359); } if(!strcmp(option, "Lil probe", true)) { SetPlayerPos(playerid, -227.5703, 1401.5544, 27.7656); } if(!strcmp(option, "House 5", true)) { SetPlayerPos(playerid, 227.7559, 1114.3844, 1080.9922); } if(!strcmp(option, "House 6", true)) { SetPlayerPos(playerid, 261.1165, 1287.2197, 1080.2578); } if(!strcmp(option, "House 7", true)) { SetPlayerPos(playerid, 24.3769, 1341.1829, 1084.375); } if(!strcmp(option, "House 8", true)) { SetPlayerPos(playerid, 221.6766, 1142.4962, 1082.6094); } if(!strcmp(option, "House 9", true)) { SetPlayerPos(playerid, -262.1759, 1456.6158, 1084.3672); } if(!strcmp(option, "House 10", true)) { SetPlayerPos(playerid, 22.861, 1404.9165, 1084.4297); } if(!strcmp(option, "House 11", true)) { SetPlayerPos(playerid, 140.3679, 1367.8837, 1083.8621); } if(!strcmp(option, "House 12", true)) { SetPlayerPos(playerid, 234.2826, 1065.229, 1084.2101); } if(!strcmp(option, "House 13", true)) { SetPlayerPos(playerid, -68.5145, 1353.8485, 1080.2109); } if(!strcmp(option, "House 14", true)) { SetPlayerPos(playerid, -285.2511, 1471.197, 1084.375); } if(!strcmp(option, "Diner2", true)) { SetPlayerPos(playerid, 442.1295, -52.4782, 999.7167); } if(!strcmp(option, "DMV", true)) { SetPlayerPos(playerid, -2031.1196, -115.8287, 1035.1719); } if(!strcmp(option, "House 15", true)) { SetPlayerPos(playerid, -42.5267, 1408.23, 1084.4297); } if(!strcmp(option, "House 16", true)) { SetPlayerPos(playerid, 84.9244, 1324.2983, 1083.8594); } if(!strcmp(option, "House 17", true)) { SetPlayerPos(playerid, 260.7421, 1238.2261, 1084.2578); } } } return 1; }