[CMD] /frisk как на OrioN. - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
[CMD] /frisk как на OrioN.
ExPRO Дата: Пятница, 16.05.2014, 19:14 | Сообщение # 1
Боец
Сообщений: 181
Статус: Offline
Скрин: http://pixs.ru/showimage/samp712png_7096726_8956702.png

Код
if(strcmp(cmd,"/frisk",true)==0)
     {
         if(IsPlayerConnected(playerid))
         {
         if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) Фракций, которые могу обыск.
             tmp = strtok(cmdtext, idx);
             if(!strlen(tmp))
             {
                 SendClientMessage(playerid, COLOR_GREY, "/frisk [id/Ник]");
                 return 1;
             }
             giveplayerid = ReturnUser(tmp);
             if(IsPlayerConnected(giveplayerid))
             {
                 if(giveplayerid != INVALID_PLAYER_ID)
                 {
                     if (ProxDetectorS(8.0, playerid, giveplayerid))
                     {
                         if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_WHITE, "Ты не можешь обыскать самого себя!"); return 1; }
                         GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                         GetPlayerName(playerid, sendername, sizeof(sendername));
                         new text1[256], text2[256]; //text5[20];
                         if(PlayerInfo[giveplayerid][pDrugs] > 0) { text1 = "| Наркотики!"; } else { text1 = "| Пустой карман"; }
                         if(PlayerInfo[giveplayerid][pMats] > 0) { text2 = "| Материалы!"; } else { text2 = "| Пустой карман"; }
                         format(string, sizeof(string), "|__________ Имущество игрока %s __________|", giveplayer);
                         SendClientMessage(playerid, COLOR_WHITE, string);
                         format(string, sizeof(string), "%s", text1);
                         SendClientMessage(playerid, COLOR_GREY, string);
                         format(string, sizeof(string), "%s", text2);
                         SendClientMessage(playerid, COLOR_GREY, string);
                         if(PlayerInfo[giveplayerid][pWanted] >= 1)
                         {
                         format(string, sizeof(string), "| В розыске.{FFFFFF}(%d Ур.Розыска)", PlayerInfo[giveplayerid][pWanted]);
                         SendClientMessage(playerid, COLOR_LIGHTRED, string);
                         format(string, sizeof(string), "обыскал(a) игрока %s." ,giveplayer);
                         Action(playerid, string);
                         }
                         else if(PlayerInfo[giveplayerid][pWanted] == 0)
                         {
                         format(string, sizeof(string), "| Не в розыске.{FFFFFF}(%d Ур.Розыска)", PlayerInfo[giveplayerid][pWanted]);
                         SendClientMessage(playerid, COLOR_LIGHTRED, string);
                         format(string, sizeof(string), "обыскал(a) игрока %s." ,giveplayer);
                         Action(playerid, string);
                     }
                     else
                     {
                         SendClientMessage(playerid, COLOR_WHITE, "Игрок слишком далеко от вас.");
                         return 1;
                     }
                 }
             }
             else
             {
                 SendClientMessage(playerid, COLOR_WHITE, "Игрока нет на сервере.");
                 return 1;
             }
         }
         return 1;
      }
   }

Автор: Naemnik43
Выложил: ExPRO для www.cheat-master.ru


>>> My sa:mp server 176.32.39.43:7777 <<<
  • Страница 1 из 1
  • 1
Поиск: