Здравствуйте! Прошу помощи вашей,может у кого что-нибудь было похожее. Вообщем команда /capture есть в моде и вроде всё работать должно,но когда ввожу в игре /capture,пишет "Неизвестная команда"
Вот сама команда из мода:
if(strcmp(cmd, "/capture", true) == 0) { for(new b = 0; b < sizeof(BizzInfo); b++) { if (PlayerToPoint(6, playerid,BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ])) { if((PlayerInfo[playerid][pMember] >= 12 && PlayerInfo[playerid][pMember] <= 16) || (PlayerInfo[playerid][pLeader] >= 12 && PlayerInfo[playerid][pLeader] <= 16) || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) { if(GetPVarInt(b,"bizzotk") > 0) return SFM(playerid, COLOR_GRAD2, "Этот бизнес можно будет захватить через %d секунд.",GetPVarInt(b,"bizzotk")); if(PlayerInfo[playerid][pRank] > 4) { new s = 0; new sd; if(PlayerInfo[playerid][pMember] != 0) sd = PlayerInfo[playerid][pMember]; else sd = PlayerInfo[playerid][pLeader]; for(new i = 0; i < 1; i++) { if(GBiz[i][0] == sd || GBiz[i][1] == sd) { s = 1; } } if(s == 1) return error(playerid, "Вы уже и так захватываете бизнес."); new gid = 555; for(new i =0; i < sizeof(BizzInfo); i++) { if(PlayerToKvadrat(playerid,BizzInfo[i][bEntranceX]-50,BizzInfo[i][bEntranceY]-50,BizzInfo[i][bEntranceX]+50,BizzInfo[i][bEntranceY]+50)) { gid = i; i = 1000; } } if(BizzInfo[gid][bBanda] == PlayerInfo[playerid][pMember] || BizzInfo[gid][bBanda] == PlayerInfo[playerid][pLeader]) return error(playerid, "Ваша фракция и так крышует данный бизнес."); for(new i =0; i < 1; i++) { if(GBiz[i][0] == BizzInfo[gid][bBanda] || GBiz[i][1] == BizzInfo[gid][bBanda]) { s = 1; } } if(s == 1) return error(playerid, "Фракция, на которую вы хотите напасть, сейчас уже воюет с кем-то."); new m1, m2; for(new i = 0; i < MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pMember] == sd || PlayerInfo[i][pLeader] == sd) { m1++; } else if(PlayerInfo[i][pMember] == BizzInfo[gid][bBanda] || PlayerInfo[i][pLeader] == BizzInfo[gid][bBanda]) { m2++; } } } if(m1 < 2) return error(playerid, "Для захвата территории необходимо 1+ членов фракции Online."); if(m2 < 2) return error(playerid, "Для захвата территории необходимо 1+ членов фракции Online.."); if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) GangZoneFlashForAll(gid, 0x4C436EAA); if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) GangZoneFlashForAll(gid, 0xFAFB71AA); if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) GangZoneFlashForAll(gid, 0xBCE635AA); if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) GangZoneFlashForAll(gid, 0x8A2CD7AA); if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) GangZoneFlashForAll(gid, 0x10DC29AA); if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) GangZoneFlashForAll(gid, 0xFFD720AA); if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) GangZoneFlashForAll(gid, 0x0FD9FAAA); if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) GangZoneFlashForAll(gid, 0x20D4ADAA); if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) GangZoneFlashForAll(gid, 0x778899AA); if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) GangZoneFlashForAll(gid, 0x6495EDAA); if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) GangZoneFlashForAll(gid, 0x4C436EAA); if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) GangZoneFlashForAll(gid, 0x2e2842AA); if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21) GangZoneFlashForAll(gid, 0xA55043AA); new sid = 0; for( new i = 0; i < 1; i++) { if(GBiz[i][0] == 0) { sid = i; } } if(sid == 0) return error(playerid, "Ошибка, сообщите об этом администрации."); GBiz[sid][0] = sd; GBiz[sid][1] = BizzInfo[gid][bBanda]; new ftext[32]; switch(BizzInfo[gid][bBanda]) { case 5: ftext = "La Cosa Nostra"; case 6: ftext = "Yakuza Family"; case 8: ftext = "The Triads Mafia"; case 10: ftext = "The Ballas Gang"; case 12: ftext = "The Grove Street Family"; case 13: ftext = "Los Santos Vagos"; case 14: ftext = "Varrios Los Aztecas"; case 15: ftext = "San Fierro Rifa"; case 16: ftext = "Russian Mafia"; case 18: ftext = "StreetRacers"; case 19: ftext = "Falcone Family"; case 21: ftext = "Hell Angels"; case 20: ftext = "Black Kings"; } new ttext[32]; switch(sd) { case 5: ttext = "La Cosa Nostra"; case 6: ttext = "Yakuza Family"; case 8: ttext = "The Triads Mafia"; case 10: ttext = "The Ballas Gang"; case 12: ttext = "The Grove Street Family"; case 13: ttext = "Los Santos Vagos"; case 14: ttext = "Varrios Los Aztecas"; case 15: ttext = "San Fierro Rifa"; case 16: ttext = "Russian Mafia"; case 18: ttext = "StreetRacers"; case 19: ttext = "Falcone Family"; case 21: ttext = "Hell Angels"; case 20: ttext = "Black Kings"; } format(string, sizeof(string),"{FFFFFF}Мы начали войну против {ecca63}%s {FFFFFF}за бизнес {ecca63}%s.",ftext,BizzInfo[gid][bMessage]); SendRadioMessage(sd, COLOR_WHITE, string); format(string, sizeof(string),"{ecca63}%s {FFFFFF}атаковали ваш бизнес {ecca63}%s.{FFFFFF} У вас есть 10 минут, чтобы приехать на отхват.",ttext,BizzInfo[gid][bMessage]); SendRadioMessage(BizzInfo[gid][bBanda], COLOR_WHITE, string); gztimer2[gid] = SetTimerEx("OneMin",250000,0,"dd",BizzInfo[gid][bBanda],gid); gztimer[gid] = SetTimerEx("nevzone",3000,1,"dd",BizzInfo[gid][bBanda],gid); } else return error(playerid, "Захват территории доступен с 5+ ранга."); } else return error(playerid, "Эта команда вам недоступна."); } } }