[Команда]Выдать наркотики,материалы Админом - Форум 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
Поиск:
Статистика Форума
Лучшие пользователи
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]

Новые пользователи
aprilez9 [15:57]

am9350450 [14:36]

dcvfre [11:04]

Sheroz [10:38]

dominiquevp60 [08:59]

derrickuy11 [05:48]

leannaaw60 [04:45]

nonaxn11 [23:52]

arbuzikkks [17:38]

gwendolyngd2 [16:08]

Drywallwje [11:38]

TronAccs [05:11]

danilka05cher [03:05]