[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
Поиск:
Статистика Форума
Лучшие пользователи
Admin [39113]

GеNius [7210]

[CM]Russel [5557]

kenlo763 [4952]

[CM]AGRESSOR [4639]

Snake_Firm [4452]

Сэс [4416]

Artem_Buero [4223]

[CM]Durman [3204]

[CM]Рафаэль [3080]

iMaddy [2855]

sky_Woker [2854]

getrekt [2745]

Новые пользователи
sn1kwww [10:06]

danyabrat1641764906901 [06:55]

danyabrat164 [06:54]

BogdanGodot [16:36]

Interfacetum [09:51]

gambid3 [15:42]

Camilla [16:22]

Adnrew2231 [13:52]

Dormannvp [07:01]

vasapups123 [16:17]

Vortexaeu [04:22]

Ez1ron [18:57]

Annotationsxeu [07:05]