[C.M.D] /ainvite - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
[C.M.D] /ainvite
Mr_Smail Дата: Суббота, 27.04.2013, 00:54 | Сообщение # 1
Любитель
Сообщений: 31
Статус: Offline
Код
if(strcmp(cmd, "/ainvite", true) == 0)  
     {  
         if(IsPlayerConnected(playerid))  
         {  
             tmp = strtok(cmdtext, idx);  
             if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /ainvite [playerid] [номер]");  
             new para1;  
             new level;  
             new ftext[40];  
             para1 = ReturnUser(tmp);  
             tmp = strtok(cmdtext, idx);  
             level = strval(tmp);  
             if(PlayerInfo[para1][pMember] != 0) return SendClientMessage(playerid, COLOR_GREY, "Игрок уже где то состоит");  
             if(PlayerInfo[para1][pLeader] != 0) return SendClientMessage(playerid, COLOR_GREY, "Этот игрок лидер");  
             if (PlayerInfo[playerid][pAdmin] >= 3)  
             {  
                 if(IsPlayerConnected(para1))  
                 {  
                     if(para1 != INVALID_PLAYER_ID)  
                     {  
                         if(level == 1) { PlayerInfo[para1][pMember] = 1; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 2) { PlayerInfo[para1][pMember] = 2; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 3) { PlayerInfo[para1][pMember] = 3; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 4) { PlayerInfo[para1][pMember] = 4; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 5) { PlayerInfo[para1][pMember] = 5; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 6) { PlayerInfo[para1][pMember] = 6; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 7) { PlayerInfo[para1][pMember] = 7; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 8) { PlayerInfo[para1][pMember] = 8; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 9) { PlayerInfo[para1][pMember] = 9; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 10) { PlayerInfo[para1][pMember] = 10; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 11) { PlayerInfo[para1][pMember] = 11; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 12) { PlayerInfo[para1][pMember] = 12; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }/////  
                         else if(level == 13) { PlayerInfo[para1][pMember] = 13; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 14) { PlayerInfo[para1][pMember] = 14; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 15) { PlayerInfo[para1][pMember] = 15; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 16) { PlayerInfo[para1][pMember] = 16; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 17) { PlayerInfo[para1][pMember] = 17; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 18) { PlayerInfo[para1][pMember] = 18; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 19) { PlayerInfo[para1][pMember] = 19; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 20) { PlayerInfo[para1][pMember] = 20; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 21) { PlayerInfo[para1][pMember] = 21; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else if(level == 22) { PlayerInfo[para1][pMember] = 22; ftext = "Ваша фракция"; ChosenSkin[para1] = skinid; }  
                         else { return 1; }  
                         GetPlayerName(para1, giveplayer, sizeof(giveplayer));  
                         GetPlayerName(playerid, sendername, sizeof(sendername));  
                         PlayerInfo[para1][pMember] = level;  
                         PlayerInfo[para1][pRank] = 1;  
                         format(string, sizeof(string), "Вы приглашены в %s лидером %s", ftext, sendername);  
                         SendClientMessage(para1,0x6BB3FFAA, string);  
                         format(string, sizeof(string), "Вы пригласили %s присоедениться к %s", giveplayer,ftext);  
                         SendClientMessage(playerid,0x6BB3FFAA, string);  
                         PlayerInfo[para1][pModel] = ChosenSkin[para1];  
                         SetPlayerSkin(para1, PlayerInfo[para1][pModel]);  
                         ResetPlayerWeapons(para1);  
                         SpawnPlayer(para1);  
                         OnPlayerUpdateRL(playerid);  
                     }  
                 }//not connected  
             }  
         }  
         return 1;  
     }  


Где надпись Ваша фракция заменяйте на надписи фракций например ЛСПД, ФБР и тд...Где надпись skinid тут пишите скин 1 ранга фракции.

Автор: Maks5 ( My friend )
  • Страница 1 из 1
  • 1
Поиск: