29.06.2013, 23:27
Well after i load this filterscript only comand /rcon unloadfs works, whats wrong, help me out guys.
Код:
#include <a_samp> #define COLOR_GREY 0xAFAFAFAA #define COLOR_CHAT 0x0FFDD349 #define CAMERA_PASS "6969" #define GREENGATE_PASS "1998" #define COVERGATE_PASS "1998" new greengate; new greengateF; new covergate1; new covergate2; new covergate3; new covergate4; new covergate5; new covergate6; new covergateF; enum pInfo { pCamOn }; new PlayerInfo[MAX_PLAYERS][pInfo]; public OnFilterScriptInit() { // Gates greengate = CreateObject(980,281.89999389648,1821.6999511719,19.39999961853,0.0000000,0.0000000,270); greengateF = 0; greengateF = 0; covergate1 = CreateObject(3095,217.89999389648,1896.5999755859,16,0.0000000,0.0000000,0); covergate2 = CreateObject(3095,208.89999389648,1896.5999755859,16,0.0000000,0.0000000,0); covergate3 = CreateObject(3095,217.89999389648,1887.5999755859,16,0.0000000,0.0000000,0); covergate4 = CreateObject(3095,208.89999389648,1887.5999755859,16,0.0000000,0.0000000,0); covergate5 = CreateObject(3095,217.89999389648,1821.6999511719,16,0.0000000,0.0000000,0); covergate6 = CreateObject(3095,208.89999389648,1821.6999511719,16,0.0000000,0.0000000,0); // CreateObject(2886,281.2000100,1826.8000500,18.1000000,0.0000000,0.0000000,0.0000000); //object(sec_keypad) (1) CreateObject(2886,282.1000100,1827.8000500,18.1000000,0.0000000,0.0000000,89.2500000); //object(sec_keypad) (2) CreateObject(987,262.5996100,1941.6992200,16.6000000,0.0000000,0.0000000,303.9970000); //object(elecfence_bar) (1) CreateObject(987,262.5996100,1941.6992200,21.5000000,0.0000000,0.0000000,303.9920000); //object(elecfence_bar) (2) CreateObject(987,269.1992200,1931.8994100,16.6000000,0.0000000,0.0000000,303.9920000); //object(elecfence_bar) (3) CreateObject(987,275.8994100,1922.0000000,16.6000000,0.0000000,0.0000000,303.9920000); //object(elecfence_bar) (4) CreateObject(987,282.5996100,1912.0996100,16.6000000,0.0000000,0.0000000,271.9940000); //object(elecfence_bar) (5) CreateObject(987,283.0000000,1900.0996100,16.6000000,0.0000000,0.0000000,271.9940000); //object(elecfence_bar) (6) CreateObject(987,283.3994100,1888.0996100,16.6000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (7) CreateObject(987,283.7998000,1876.0996100,16.6000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (8) CreateObject(987,284.1992200,1864.0996100,16.6000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (9) CreateObject(987,284.5996100,1852.0996100,16.6000000,0.0000000,0.0000000,256.4920000); //object(elecfence_bar) (10) CreateObject(987,281.7998000,1840.5000000,16.6000000,0.0000000,0.0000000,269.9890000); //object(elecfence_bar) (11) CreateObject(987,281.7998000,1838.3994100,16.6000000,0.0000000,0.0000000,269.9890000); //object(elecfence_bar) (12) CreateObject(987,282.0000000,1816.0000000,21.5000000,0.0000000,0.0000000,287.7390000); //object(elecfence_bar) (12) CreateObject(987,283.6000100,1811.1999500,16.6000000,0.0000000,0.0000000,287.7370000); //object(elecfence_bar) (12) CreateObject(987,269.1992200,1931.8994100,21.5000000,0.0000000,0.0000000,303.9920000); //object(elecfence_bar) (3) CreateObject(987,275.8994100,1922.0000000,21.5000000,0.0000000,0.0000000,303.9920000); //object(elecfence_bar) (4) CreateObject(987,282.5996100,1912.0996100,21.5000000,0.0000000,0.0000000,271.9940000); //object(elecfence_bar) (5) CreateObject(987,283.0000000,1900.0999800,21.5000000,0.0000000,0.0000000,271.9940000); //object(elecfence_bar) (6) CreateObject(987,283.3994100,1888.0996100,21.5000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (7) CreateObject(987,283.7998000,1876.0996100,21.5000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (8) CreateObject(987,284.1992200,1864.0996100,21.5000000,0.0000000,0.0000000,271.9890000); //object(elecfence_bar) (9) CreateObject(987,284.5996100,1852.0996100,21.5000000,0.0000000,0.0000000,256.4920000); //object(elecfence_bar) (10) CreateObject(987,281.7998000,1838.3994100,21.5000000,0.0000000,0.0000000,269.9890000); //object(elecfence_bar) (12) CreateObject(987,281.7998000,1840.5000000,21.5000000,0.0000000,0.0000000,269.9890000); //object(elecfence_bar) (11) CreateObject(987,282.0000000,1816.0000000,16.6000000,0.0000000,0.0000000,287.7370000); //object(elecfence_bar) (12) CreateObject(987,283.5996100,1811.1992200,21.5000000,0.0000000,0.0000000,287.7370000); //object(elecfence_bar) (12) CreateObject(1250,220.3999900,1886.8000500,17.7000000,0.0000000,0.0000000,353.0000000); //object(smashbarpost) (1) CreateObject(2886,220.5000000,1886.5999800,18.0000000,0.0000000,0.0000000,80.0000000); //object(sec_keypad) (3) CreateObject(2886,219.5000000,1887.1999500,15.3000000,0.0000000,0.0000000,262.0000000); //object(sec_keypad) (4) CreateObject(2886,226.3999900,1870.9000200,13.9000000,0.0000000,0.0000000,268.5000000); //object(sec_keypad) (5) CreateObject(2886,228.2000000,1870.9000200,13.8000000,0.0000000,0.0000000,180.0000000); //object(sec_keypad) (6) CreateObject(2886,238.5000000,1862.0999800,14.5000000,0.0000000,0.0000000,91.0000000); //object(sec_keypad) (7) CreateObject(2886,238.5000000,1863.9000200,14.5000000,0.0000000,0.0000000,91.0000000); //object(sec_keypad) (8) CreateObject(2886,256.0000000,1849.1999500,9.1000000,0.0000000,0.0000000,267.5000000); //object(sec_keypad) (9) CreateObject(2886,257.5000000,1848.8000500,9.1000000,0.0000000,0.0000000,5.4950000); //object(sec_keypad) (10) CreateObject(2886,247.1000100,1842.0999800,9.2000000,0.0000000,0.0000000,180.0000000); //object(sec_keypad) (11) CreateObject(2886,247.0000000,1838.5000000,8.1000000,0.0000000,0.0000000,0.0000000); //object(sec_keypad) (12) CreateObject(2886,233.8000000,1821.1999500,7.5000000,0.0000000,0.0000000,88.0000000); //object(sec_keypad) (13) CreateObject(2886,233.1000100,1821.0000000,7.8000000,0.0000000,0.0000000,270.0000000); //object(sec_keypad) (14) CreateObject(2180,212.6000100,1823.3000500,5.3000000,0.0000000,0.0000000,270.2500000); //object(med_office5_desk_3) (1) CreateObject(2180,213.2000000,1819.5999800,5.3000000,0.0000000,0.0000000,299.4970000); //object(med_office5_desk_3) (2) CreateObject(2180,213.6000100,1826.5000000,5.3000000,0.0000000,0.0000000,240.9970000); //object(med_office5_desk_3) (3) CreateObject(1671,214.3000000,1825.5999800,5.9000000,0.0000000,0.0000000,240.0000000); //object(swivelchair_a) (1) CreateObject(1671,214.0000000,1822.8000500,5.9000000,0.0000000,0.0000000,269.9960000); //object(swivelchair_a) (2) CreateObject(1671,214.3999900,1819.6999500,5.9000000,0.0000000,0.0000000,299.9950000); //object(swivelchair_a) (3) CreateObject(16093,120.0000000,1949.0999800,22.2000000,0.0000000,0.0000000,178.0000000); //object(a51_gatecontrol) (1) CreateObject(16638,120.0000000,1950.0999800,20.4000000,0.0000000,0.0000000,178.0000000); //object(a51_gatecon_a) (1) CreateObject(2886,123.4000000,1949.3000500,23.5000000,0.0000000,0.0000000,86.0000000); //object(sec_keypad) (15) CreateObject(2886,123.1000000,1949.3000500,23.5000000,0.0000000,0.0000000,265.9950000); //object(sec_keypad) (16) CreateObject(2886,117.1000000,1949.5999800,23.5000000,0.0000000,0.0000000,85.9950000); //object(sec_keypad) (17) CreateObject(2886,116.8000000,1949.5999800,23.5000000,0.0000000,0.0000000,265.9950000); //object(sec_keypad) (18) print("\n--------------------------------------"); print(" MolovArmyBase By, Maticek"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } forward CloseGreenGate(); public CloseGreenGate() { MoveObject(greengate,281.89999389648,1821.6999,19.39999961853, 3000); greengateF = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[128]; if(strcmp(cmd, "/armycam", true) == 0) { if(IsPlayerConnected(playerid)) { if((IsPlayerInRangeOfPoint(playerid, 5.0,213.3826,1822.7753,6.4141) || IsPlayerInRangeOfPoint(playerid, 5.0,211.6498,1812.2715,21.8594)) && PlayerInfo[playerid][pCamOn] == 0) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "You must enter the password for this.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else if(PlayerInfo[playerid][pCamOn] == 1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Army Base Camera","Camera 1\n Camera 2\n Camera 3 \n Camera 4 \n Camera 5 \n Camera 6 \n Camera 7 \n Camera 8 \n Camera 9 \n Camera 10 \n Camera 11 \n Camera 12 \n Turn OFF","Continue","Cancle"); } } return 1; } if(strcmp(cmd, "/greengate", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 5.0,282.10000610352,1826.8000488281,17.1) && greengateF == 0) { ShowPlayerDialog(playerid, 3, DIALOG_STYLE_PASSWORD, "Password must be at least 1-20 characters long.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else { SendClientMessage(playerid, 0xFF0000AA, "You are not near army gate or gates are open allready!!"); } return 1; } if(strcmp(cmd, "/covergate", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 5.0,220.3994140625,1886.7998046875,17.5) && covergateF == 0) { ShowPlayerDialog(playerid, 4, DIALOG_STYLE_PASSWORD, "Password must be at least 1-20 characters long.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else if(covergateF == 1) { MoveObject(covergate1,217.89999389648,1896.5999755859,16, 3000); MoveObject(covergate2,208.89999389648,1896.5999755859,16, 4000); MoveObject(covergate3,217.89999389648,1896.5999755859,16, 3000); MoveObject(covergate4,208.89999389648,1896.5999755859,16, 4000); MoveObject(covergate5,217.89999389648,1896.5999755859,16, 3000); MoveObject(covergate6,208.89999389648,1896.5999755859,16, 4000); } else { SendClientMessage(playerid, 0xFF0000AA, "You are not near army gate!!"); } } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { { if(dialogid == 1) { if(response) { if(listitem == 0) { SetPlayerCameraPos(playerid, 266.8680,1853.2881,12.7578); SetPlayerCameraLookAt(playerid, 276.7950,1863.3218,8.7578); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 1) { SetPlayerCameraPos(playerid, 299.0263,1816.7081,10.3467); SetPlayerCameraLookAt(playerid, 260.5831,1816.6047,4.7109); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 2) { SetPlayerCameraPos(playerid, 248.7181,1842.7448,14.4337); SetPlayerCameraLookAt(playerid, 254.0605,1855.5741,8.7578); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 3) { SetPlayerCameraPos(playerid, 256.8647,1848.3792,9.7578); SetPlayerCameraLookAt(playerid, 269.9068,1840.0408,6.6411); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 4) { SetPlayerCameraPos(playerid, 214.5663,1851.3955,14.9375); SetPlayerCameraLookAt(playerid, 214.4745,1875.5630,13.1470); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 5) { SetPlayerCameraPos(playerid, 160.7828,1940.2150,35.1256); SetPlayerCameraLookAt(playerid, 136.5837,1952.4501,19.4079); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 6) { SetPlayerCameraPos(playerid, 163.3440,1931.7267,34.8984); SetPlayerCameraLookAt(playerid, 213.1403,1893.3687,15.9183); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 7) { SetPlayerCameraPos(playerid, 232.5349,1936.1763,34.8984); SetPlayerCameraLookAt(playerid, 224.2507,1990.2334,17.6406); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 8) { SetPlayerCameraPos(playerid, 268.4260,1896.2313,34.8984); SetPlayerCameraLookAt(playerid, 339.6696,1944.1016,17.6406); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 9) { SetPlayerCameraPos(playerid, 264.3676,1809.3737,34.9771); SetPlayerCameraLookAt(playerid, 281.5394,1819.3345,17.6406); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 10) { SetPlayerCameraPos(playerid, 117.6566,1811.9823,48.0592); SetPlayerCameraLookAt(playerid, 198.7096,1810.0095,18.8579); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 11) { SetPlayerCameraPos(playerid, 106.6796,1902.7579,47.4932); SetPlayerCameraLookAt(playerid, 135.4559,1940.0137,19.3028); SendClientMessage(playerid, COLOR_CHAT, "/armycam again to turnoff/change camera."); PlayerInfo[playerid][pCamOn] = 1; } else if(listitem == 12) { if(PlayerInfo[playerid][pCamOn] == 1) { SetCameraBehindPlayer(playerid); PlayerInfo[playerid][pCamOn] = 0; } else { SendClientMessage(playerid, COLOR_CHAT, "Your Camere is OFF allready."); ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Army Base Camera","Camera 1\n Camera 2\n Camera 3 \n Camera 4 \n Camera 5 \n Camera 6 \n Camera 7 \n Camera 8 \n Camera 9 \n Camera 10 \n Camera 11 \n Camera 12 \n Turn OFF","Continue","Cancle"); } } } else return SendClientMessage(playerid, 0xFF0000AA, "You have cancelled."); } if(dialogid == 2) { if(response) { if(strlen(inputtext) > 0 || strlen(inputtext) > 20) { if(strcmp(inputtext, CAMERA_PASS, true) == 0) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Army Base Camera","Camera 1\n Camera 2\n Camera 3 \n Camera 4 \n Camera 5 \n Camera 6 \n Camera 7 \n Camera 8 \n Camera 9 \n Camera 10 \n Camera 11 \n Camera 12 \n Turn OFF","Continue","Cancle"); } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "You have entered an incorrect password.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Password must be at least 1-20 characters long.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return SendClientMessage(playerid, 0xFF0000AA, "You have cancelled."); } if(dialogid == 3) { if(response) { if(strlen(inputtext) > 0 || strlen(inputtext) > 20) { if(strcmp(inputtext, GREENGATE_PASS, true) == 0) { MoveObject(greengate,281.89999389648,1832.5,19.39999961853, 3000); SetTimer("CloseGreenGate", 10000,false); greengateF = 1; } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "You have entered an incorrect password.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Password must be at least 1-20 characters long.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return SendClientMessage(playerid, 0xFF0000AA, "You have cancelled."); } if(dialogid == 4) { if(response) { if(strlen(inputtext) > 0 || strlen(inputtext) > 20) { if(strcmp(inputtext, COVERGATE_PASS, true) == 0) { MoveObject(covergate1,225.80000305176,1896.5999755859,16, 3000); MoveObject(covergate2,201.60000610352,1896.5999755859,16, 4000); MoveObject(covergate3,225.80000305176,1896.5999755859,16, 3000); MoveObject(covergate4,201.60000610352,1896.5999755859,16, 4000); MoveObject(covergate5,225.80000305176,1896.5999755859,16, 3000); MoveObject(covergate6,201.60000610352,1896.5999755859,16, 4000); covergateF = 1; } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "You have entered an incorrect password.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Password must be at least 1-20 characters long.", "{FF0000}Enter Your Password Here:","Enter","Cancel"); } else return SendClientMessage(playerid, 0xFF0000AA, "You have cancelled."); } } return 0; }