[Команда]Выдать наркотики,материалы Админом - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
[Команда]Выдать наркотики,материалы Админом
SKA Дата: Вторник, 05.06.2012, 15:54 | Сообщение # 1
рак
Сообщений: 306
Статус: Offline
Выдать наркотики, /makedrugs

Code
if(strcmp(cmd, "/makedrugs", true) == 0)
     {
         if(PlayerInfo[playerid][pAdmin] >=4)//Уровень администрации (Измените на свой)
         {
             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
Code
if(strcmp(cmd, "/makemats", true) == 0)
     {
         if(PlayerInfo[playerid][pAdmin] >=4)//Уровень администрации (Измените на свой)
         {
             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;
     }  


Автор не я.
  • Страница 1 из 1
  • 1
Поиск: