[MAKEDRUGS] [MAKEMATS] - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
[MAKEDRUGS] [MAKEMATS]
[CM]MotherFucker Дата: Понедельник, 07.03.2016, 23:51 | Сообщение # 1
Боец
Сообщений: 72
Статус: Offline
Выдача наркотиков - /makedrugs
Код
if(strcmp(cmd, "/makedrugs", true) == 0)
     {
         if(PlayerInfo[playerid][pAdmin] >=11)
         {
             if(IsPlayerConnected(playerid))
             {
                 tmp = strtok(cmdtext, idx);
                 if(!strlen(tmp))
                 {
                     SendClientMessage(playerid, COLOR_GRAD1, " {FFA500}[INFO]:{ffffff} /makedrugs [ID игрока] [кол-во]");
                     return 1;
                 }
                 //giveplayerid = strval(tmp);
                 giveplayerid = ReturnUser(tmp);
                 tmp = strtok(cmdtext, idx);
                 if(!strlen(tmp))
                 {
                     SendClientMessage(playerid, COLOR_GRAD1, " {FFA500}[INFO]:{ffffff} /makedrugs [ID игрока] [кол-во]");
                     return 1;
                 }
                 new playa;
                 GetPlayerName(playa, sendername, sizeof(sendername));
                 playa = ReturnUser(tmp);
                 moneys = strval(tmp);
                 PlayerInfo[giveplayerid][pDrugs] = moneys;
                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                 GetPlayerName(playerid, sendername, sizeof(sendername));
                 format(string, 256, "{00FF00}•{3399CC}%s {CCCCCC}дал {3399CC}%s {FFFF00}%d {CCCCCC}ГР нарко.", sendername,giveplayer,moneys);
                 ABroadCast(COLOR_YELLOW,string,1);
             }
         }
         return 1;
     }  

Выдача материалов - /makemats
Код
if(strcmp(cmd, "/makemats", true) == 0)
     {
         if(PlayerInfo[playerid][pAdmin] >=11)
         {
             if(IsPlayerConnected(playerid))
             {
                 tmp = strtok(cmdtext, idx);
                 if(!strlen(tmp))
                 {
                     SendClientMessage(playerid, COLOR_GRAD1, " {FFA500}[INFO]:{ffffff} /makemats [ID игрока] [кол-во]");
                     return 1;
                 }
                 //giveplayerid = strval(tmp);
                 giveplayerid = ReturnUser(tmp);
                 tmp = strtok(cmdtext, idx);
                 if(!strlen(tmp))
                 {
                     SendClientMessage(playerid, COLOR_GRAD1, " {FFA500}[INFO]:{ffffff} /makemats [ID игрока] [кол-во]");
                     return 1;
                 }
                 new playa;
                 GetPlayerName(playa, sendername, sizeof(sendername));
                 playa = ReturnUser(tmp);
                 moneys = strval(tmp);
                 PlayerInfo[giveplayerid][pMats] = moneys;
                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                 GetPlayerName(playerid, sendername, sizeof(sendername));
                 format(string, 256, "{00FF00}•{3399CC}%s {CCCCCC}дал {3399CC}%s {FFFF00}%d {CCCCCC}материалов.", sendername,giveplayer,moneys);
                 ABroadCast(COLOR_YELLOW,string,1);
             }
          }
         return 1;
     }  

Автор: Неизвестно.
Почему не известно? -- Была старая папка модов, заглянул, взял пару командочек :D
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума