Illya
Дебютант
Не показывает многие команды в /mm > команды сервера > мои команды ( показывает только у LSPD,SFPD,LVPD,FBI ).Незнаю в чем ошибка.
Код на /makeleader:
Код на команды сервера:
Код на /makeleader:
PHP:
else if(strcmp(cmd, "/makeleader", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COLOR_WHITE, "::: Aaaaeoa: /makeleader [id] [Number(1 - 26)]");
if(dostup[playerid] != 1) return ShowPlayerDialog(playerid,1233,DIALOG_STYLE_INPUT,"Ainooi aaieieno?aoi?a","Aaaaeoa ia?ieu io aaieieno?aoeaiie iaiaee","Ie","Ioiaia");
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 26 || level < 1) return SendClientMessage(playerid, COLOR_GREY, "Iaeucy iaiuoa 1 eee aieuoa 26!");
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!(PlayerInfo[playerid][pAdmin] >= 8)) return true;
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pWarns] >= 1) return SendClientMessage(playerid, COLOR_GREY,"O ea?iea Warn.");
if(PlayerInfo[para1][pAvtomas] != 255) return SendClientMessage(playerid, COLOR_GREY,"O ea?iea ianoa?neay");
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
PlayerInfo[para1][pLeader] = level;
PlayerInfo[para1][pMember] = level;
PlayerInfo[para1][pJob] = 0;
SendClientMessage(para1, COLOR_REDD, "Eniieucoeoa eeaaeoo 'Auno?ue aaa' (i?iaae ii oiie?aie?)");
SendClientMessage(para1, COLOR_REDD, "Eniieucoeoa eeaaeoo 'Aaa?o,aiec' (W,S ii oiie?aie?)");
format(string, sizeof(string), "Aaieieno?aoi? %s iacia?ee Aan eiio?iee?iaaou aaiio? o?aeoe?", sendername);
SendClientMessage(para1, 0x6495EDFF, string);
format(string, sizeof(string), "Au iacia?eee %s eiio?iee?iaaou o?aeoe? iiia? %d.", giveplayer,level);
SendClientMessage(playerid, 0x6495EDFF, string);
SendClientMessage(para1, COLOR_REDD, "- Caiieieoa cayaeo ia iiaa?aoe? aaoaai ?acaaea, ia oi?oia: [url]www.vrazrabotke.net[/url] !");
SendClientMessage(para1, COLOR_GREY, "Anee Au neo?aeii ia?aee 'Enter' e iai? i?iiaei, ia?ieoa 'Enter' aua ?ac");
TogglePlayerControllable(para1, 0);
OldSkin[playerid] = GetPlayerSkin(playerid);
switch(level)
{
case 1: { PlayerInfo[para1][pRank] = 15; InviteSkin[para1] = 280; }
case 2: { PlayerInfo[para1][pRank] = 8; InviteSkin[para1] = 286; }
case 3: { PlayerInfo[para1][pRank] = 16; InviteSkin[para1] = 287; }
case 4: { PlayerInfo[para1][pRank] = 8; InviteSkin[para1] = 70; }
case 5: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 223;} //La Cosa Nostra
case 6: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 120; } //Yakuza
case 7: { PlayerInfo[para1][pRank] = 9; InviteSkin[para1] = 57; }//Iy?ey
case 8: { PlayerInfo[para1][pRank] = 5; InviteSkin[para1] = 171; }//e?oiua
case 9: { PlayerInfo[para1][pRank] = 6; InviteSkin[para1] = 250;} //News Reporters
case 10: { PlayerInfo[para1][pRank] = 15; InviteSkin[para1] = 280;} //Police Force
case 11: { PlayerInfo[para1][pRank] = 8; InviteSkin[para1] = 59;} //Driving/Flying School
case 12: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 102;} //<ballas
case 13: { PlayerInfo[para1][pRank] = 11; InviteSkin[para1] = 108;}
case 14: { PlayerInfo[para1][pRank] = 8; InviteSkin[para1] = 112;} //Russian Mafia
case 15: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 105;}
case 16: { PlayerInfo[para1][pRank] = 6; InviteSkin[para1] = 250;} //News Reporte
case 17: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 114;}
case 18: { PlayerInfo[para1][pRank] = 10; InviteSkin[para1] = 173;}
case 19: { PlayerInfo[para1][pRank] = 16; InviteSkin[para1] = 287;} //?on
case 20: { PlayerInfo[para1][pRank] = 6; InviteSkin[para1] = 250;} //News Reporters
case 21: { PlayerInfo[para1][pRank] = 15; InviteSkin[para1] = 280;} //Police Force
case 22: { PlayerInfo[para1][pRank] = 8; InviteSkin[para1] = 70;} //Fire/Ambulance
case 23: { PlayerInfo[para1][pRank] = 7; InviteSkin[para1] = 292;} //Fire/Ambulance
case 24: { PlayerInfo[para1][pRank] = 7; InviteSkin[para1] = 294;} //Fire/Ambulance
case 25: { PlayerInfo[para1][pRank] = 16; InviteSkin[para1] = 287;} //?on
case 26: { PlayerInfo[para1][pRank] = 7; InviteSkin[para1] = 100;} //Fire/Ambulance
}
SetPlayerInterior(para1,5);
SetPlayerVirtualWorld(para1,1);
ShowMenuForPlayer(ChoseSkin,para1);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
SelectChar[para1] = 255;
SelectCharID[para1] = PlayerInfo[para1][pMember];
SelectCharPlace[para1] = 1;
PlayerInfo[para1][pModel] = InviteSkin[para1];
SetPlayerHealthAC(para1,100);
PlayerInfo[para1][pHP] =100;
SetPlayerSkin(para1, InviteSkin[para1]);
}
}
}
return true;
PHP:
else if (PlayerInfo[playerid][pMember] == 2)
{
SendClientMessage(playerid, COLOR_YELLOW2, "<> /demote /tazerall /bizlock /gov /uninvite /invite /giverank /r /d /cuff /tazer /uncuff");
}
else if (PlayerInfo[playerid][pMember] == 23)
{
SendClientMessage(playerid, COLOR_YELLOW2, "<> /f /invite /uninvite /giverank /tie /untie");
}
else if (PlayerInfo[playerid][pMember] == 19)
{
SendClientMessage(playerid, COLOR_YELLOW2, "<> /cameraoff /camera");
}
else if (OdelFormu[playerid] == 1 && IsAMedic(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW2, "I?N: (/r)adio (/d)epartments /heal /gov /lomka /narkoz /sethpprice");
}
else if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
SendClientMessage(playerid, COLOR_YELLOW2, "E?oiua: /f /dice");
}
else if (ISAMAFIA(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW2, "(/f)amily /tie /takephone /untie /getweapon /bizlist /bizwar /mafiabalance /mafiawithdraw /mafiabankput ");
SendClientMessage(playerid, COLOR_YELLOW2, "/warehouse /gag /ungag /setdebt ID /debtors");
}
else if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Iy?ey: /r /free /kazna /kaznawithdraw /tazer");
}
else if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pMember] == 24)
{
SendClientMessage(playerid, COLOR_YELLOW2, "/contract /portable /invite /uninvite /giverank /f /mask hitmenu");
}
else if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SendClientMessage(playerid, COLOR_YELLOW2, "NEWS: /live (/f)amily /newsbank /newswithdraw /yes [id] /off [id] /n /invite /giverank /uninvite");
}
else if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Eino?oeoi?u: (/f)amily Eeee iai? - auaaou eeoaicee /take /duty");
}
else if (IsAGang(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW2, "<> (/f)amily /materialsget /selldrugs /sellzone /mask /gunlist /capture ");
SendClientMessage(playerid, COLOR_YELLOW2, "<> /materialsput /unloading /getmaterials /putmaterials /usekey /keys");
SendClientMessage(playerid, COLOR_YELLOW2, "<> Caiu: /uninvite");
SendClientMessage(playerid, COLOR_YELLOW2, "<> Aaie aaiau: /gbank /gbankput /gbankwithdraw");
SendClientMessage(playerid, COLOR_YELLOW2, "<> Aaooi: /sellgun /robhouse /gbankwithdraw");
}
}
case 5:
{
if (PlayerInfo[playerid][pLeader] == 19)
{
SendClientMessage(playerid, COLOR_YELLOW2,"<> /invite /uninvite /giverank ");
}
if(PlayerInfo[playerid][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW2,"Oa?eo: /iinvite - ia?aaia ec a?iee");
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
SendClientMessage(playerid, COLOR_YELLOW2,"<> /invite /uninvite /giverank ");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Aai aua ?aii n?aa!");
}
}
case 6:
{
SendClientMessage(playerid,COLOR_YELLOW2,"<> /hmenu - Aeaaiia iai?(Iano?ieee aiia)");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /home - Iinoaaeou iaoeo o aiia (GPS)");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /changehouse - I?iaaou aii ea?ieo");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /healme - Eniieuciaaou aioa?eo");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /exit eee eiiiea Alt - aueoe ec aiia");
}
case 7:
{
if(PlayerInfo[playerid][pPbiskey] == 255) return SendClientMessage(playerid, COLOR_GREY, "Au ia aecianiai!");
if(PlayerInfo[playerid][pPbiskey] >= 100)
{
SendClientMessage(playerid,COLOR_YELLOW2,"<> /buybiz - Eoieou aecian");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /sellbiz - I?iaaou aecian");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizlock - Cae?uou/Ioe?uou aecian");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizstats - Noaoenoeea aeciana");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizfee - Onoaiiaeou oaio aaicei");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizwithdraw - Niyou aaiuae n aeciana");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizmafia - Onoaiiaeou e?uoo");
return true;
}
SendClientMessage(playerid,COLOR_YELLOW2,"<> /sellbiz - I?iaaou aecian");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizlock - Cae?uou/Ioe?uou aecian");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizstats - Noaoenoeea aeciana");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizfee - Onoaiiaeou oaio ca aoia");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizwithdraw - Niyou aaiuae n aeciana");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /getbizstats - Ociaou noaoenoeeo a?oaiai aeciana");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /cena - Onoaiiaeou oaio ca oiaa?");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /bizmafia - Onoaiiaeou e?uoo");
}
case 8:
{
SendClientMessage(playerid,COLOR_YELLOW2,"<> /carpass - iiniio?aou aieoiaiou ia iaoeio");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /showcarpass - iieacaou aieoiaiou ia iaoeio");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /sellcar - i?iaaou iaoeio");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /fixcar - iaiiaeou iaoeio");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /fill - cai?aaeou iaoeio");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /changecar - i?iaaou iaoeio ea?ieo");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /fillcar - cai?aaeou iaoeio n eaieno?u");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /get fuel - eoieou eaieno?o");
}
case 9:
{
if(PlayerInfo[playerid][pAvtomas] == 255) return SendClientMessage(playerid, COLOR_GREY, "Au ia eiaaoa ianoa?neo?!");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /selltune - i?iaaou aaoiianoa?neo?");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /tinfo - eioi?iaoey");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /tpanel - iaiaeu oi?aaeaiey");
SendClientMessage(playerid,COLOR_YELLOW2,"<> /gettunestats - eioi?iaoey i ianoa?neie");
}
}
}
else
{
new listitems[] = "[1] Eiiaiau Ca?aa?a\n[2] Noaoenoeea Ia?niia?a\n[3] ?aii?o\n[4] I?aaeea\t\t\t\t[ {d53e07}Aa?iia{ffffff} ]\n[5] Iano?ieee\n[6] Neea Aaiaa\n[7] Aaciianiinou\n[8] Ainooi e Ea?a\n[9] Aiiao";
SPD(playerid, 9623, DIALOG_STYLE_LIST, "Ee?iia iai?", listitems, "Aua?aou", "Ioiaia");
return true;
Последнее редактирование:
