• Страница 1 из 1
  • 1
Модератор форума: drifter-dron, admin, TweIk  
команда /invite
Dimka_71rusДата: Воскресенье, 29.01.2012, 17:59:20 | Сообщение # 1

Группа: Пользователи
Сообщений: 360
помогите сделать чтобы когда приглашаешь к себе в банду или фраку принимало человека не сразу а была надпись:
Лидер Dager предложил вступить вам в Ballas(/accept team)
Вот команда /invite
Code
    if(strcmp(cmd, "/invite", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
     SendClientMessage(playerid, COLOR_GRAD2, " Èñïîëüçóéòå: /invite [playerid/PartOfName]");
     return 1;
    }
    new para1;
    new skinn;
    new ftext[25];
       para1 = ReturnUser(tmp);
    if (PlayerInfo[playerid][pLeader] >= 1)
    {
        if(IsPlayerConnected(para1))
        {
            if(para1 != INVALID_PLAYER_ID)
            {
          if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
          {
              if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Ïîëèöèÿ"; new File = iniOpen("fraction/fraction1.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ÔÁÐ"; new File = iniOpen("fraction/fraction2.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "Àðìèÿ"; new File = iniOpen("fraction/fraction3.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "Çäðàâîõðàíåíèå"; new File = iniOpen("fraction/fraction4.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; new File = iniOpen("fraction/fraction5.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Yakuza"; new File = iniOpen("fraction/fraction6.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Ìýðèÿ"; new File = iniOpen("fraction/fraction7.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "Àãåíñòâî Êèëëåðîâ"; new File = iniOpen("fraction/fraction8.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "Ðåïîðòåðû"; new File = iniOpen("fraction/fraction9.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "Òàêñèñòû"; new File = iniOpen("fraction/fraction10.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "Ëèöåíçåðû"; new File = iniOpen("fraction/fraction11.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Áàéêåðû"; new File = iniOpen("fraction/fraction12.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }/////
                             else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "Ðóññêàÿ ìàôèÿ"; new File = iniOpen("fraction/fraction13.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "Grove"; new File = iniOpen("fraction/fraction14.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Aztecas"; new File = iniOpen("fraction/fraction15.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "Ballas"; new File = iniOpen("fraction/fraction16.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "Rifa"; new File = iniOpen("fraction/fraction17.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "Vagos"; new File = iniOpen("fraction/fraction18.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 19) { PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "Ñòðèòðåéñåðû"; new File = iniOpen("fraction/fraction19.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "Êîëõîç"; new File = iniOpen("fraction/fraction20.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 21) { PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "ÇÀÎ Âîcõîæäåíèå"; new File = iniOpen("fraction/fraction21.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 25) { PlayerInfo[para1][pTeam] = 25; gTeam[para1] = 25; ftext = "CIA"; new File = iniOpen("fraction/fraction25.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
        else { return 1; }
        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
        PlayerInfo[para1][pRank] = 1;
        PlayerInfo[para1][pZvan] = 1;
        printf("[RPG]Luxe: %s ïðèãëàñèë %s ïðèñîåäèíÿòüñÿ %s.", sendername, giveplayer, ftext);
        format(string, sizeof(string), "Âû Ïðèñîåäèíèëèñü ê %s, Âû áûëè ïðèãëàøåíû Ëèäåðîì %s.", ftext, sendername);
        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "Âû Ïðèãëàñèëè %s ïðèñîåäèíÿòüñÿ %s.", giveplayer,ftext);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        SendClientMessage(para1, COLOR_LIGHTBLUE, "Âû óâîëåíû ñ ðàáîòû!");
        PlayerInfo[para1][pModel] = skinn;
           PlayerInfo[para1][pChar] = skinn;
           PlayerInfo[para1][pJob] = 0;
           PlayerInfo[para1][pContractTime] = 0;
           MedicBill[playerid] = 0;
           SelectCharPlace[playerid] = 0;
           SelectCharID[playerid] = 0;
           gTeam[playerid] = PlayerInfo[playerid][pTeam];
           SelectChar[playerid] = 0;
           SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
        MedicBill[playerid] = 0;
           SelectCharPlace[playerid] = 0;
           SelectCharID[playerid] = 0;
           SelectChar[playerid] = 0;
           SaveAccounts();
           SaveKilom();
       }
       else
       {
           SendClientMessage(playerid, COLOR_GREY, "  Ýòîò èãðîê íàõîäèòñÿ â íàñòîÿùåå âðåìÿ,  ðîçûñêå/Ìåíÿåò Êîìàíäó/èëè ×ëåí ñåìüè.");
           return 1;
       }
      }
     }//not connected
    }
    else
    {
     SendClientMessage(playerid, COLOR_GRAD1, "   Âû íå óïîëíîìî÷åíû èñïîëüçîâàòü ýòó êîìàíäó (Ëèäåðàì òîëüêî!");
    }
   }
   return 1;
  }


Лучшие моды,скрипты,карты - вы найдёте на сайте samp-pawno.ru
Самые чёткие ответы на ваши вопросы и помощь по скритингу вы найдёте на сайте forum-pawno.ru
 
Сообщениепомогите сделать чтобы когда приглашаешь к себе в банду или фраку принимало человека не сразу а была надпись:
Лидер Dager предложил вступить вам в Ballas(/accept team)
Вот команда /invite
Code
    if(strcmp(cmd, "/invite", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
     SendClientMessage(playerid, COLOR_GRAD2, " Èñïîëüçóéòå: /invite [playerid/PartOfName]");
     return 1;
    }
    new para1;
    new skinn;
    new ftext[25];
       para1 = ReturnUser(tmp);
    if (PlayerInfo[playerid][pLeader] >= 1)
    {
        if(IsPlayerConnected(para1))
        {
            if(para1 != INVALID_PLAYER_ID)
            {
          if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
          {
              if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Ïîëèöèÿ"; new File = iniOpen("fraction/fraction1.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ÔÁÐ"; new File = iniOpen("fraction/fraction2.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "Àðìèÿ"; new File = iniOpen("fraction/fraction3.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "Çäðàâîõðàíåíèå"; new File = iniOpen("fraction/fraction4.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; new File = iniOpen("fraction/fraction5.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Yakuza"; new File = iniOpen("fraction/fraction6.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Ìýðèÿ"; new File = iniOpen("fraction/fraction7.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "Àãåíñòâî Êèëëåðîâ"; new File = iniOpen("fraction/fraction8.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "Ðåïîðòåðû"; new File = iniOpen("fraction/fraction9.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "Òàêñèñòû"; new File = iniOpen("fraction/fraction10.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "Ëèöåíçåðû"; new File = iniOpen("fraction/fraction11.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
              else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Áàéêåðû"; new File = iniOpen("fraction/fraction12.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }/////
                             else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "Ðóññêàÿ ìàôèÿ"; new File = iniOpen("fraction/fraction13.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "Grove"; new File = iniOpen("fraction/fraction14.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Aztecas"; new File = iniOpen("fraction/fraction15.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "Ballas"; new File = iniOpen("fraction/fraction16.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "Rifa"; new File = iniOpen("fraction/fraction17.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "Vagos"; new File = iniOpen("fraction/fraction18.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 19) { PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "Ñòðèòðåéñåðû"; new File = iniOpen("fraction/fraction19.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "Êîëõîç"; new File = iniOpen("fraction/fraction20.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 21) { PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 21; ftext = "ÇÀÎ Âîcõîæäåíèå"; new File = iniOpen("fraction/fraction21.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
                             else if(PlayerInfo[playerid][pLeader] == 25) { PlayerInfo[para1][pTeam] = 25; gTeam[para1] = 25; ftext = "CIA"; new File = iniOpen("fraction/fraction25.ini"); iniGetInt(File,"q1",skinn); iniClose(File); SetPlayerSkin(para1, skinn); }
        else { return 1; }
        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
        GetPlayerName(playerid, sendername, sizeof(sendername));
        PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
        PlayerInfo[para1][pRank] = 1;
        PlayerInfo[para1][pZvan] = 1;
        printf("[RPG]Luxe: %s ïðèãëàñèë %s ïðèñîåäèíÿòüñÿ %s.", sendername, giveplayer, ftext);
        format(string, sizeof(string), "Âû Ïðèñîåäèíèëèñü ê %s, Âû áûëè ïðèãëàøåíû Ëèäåðîì %s.", ftext, sendername);
        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
        format(string, sizeof(string), "Âû Ïðèãëàñèëè %s ïðèñîåäèíÿòüñÿ %s.", giveplayer,ftext);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        SendClientMessage(para1, COLOR_LIGHTBLUE, "Âû óâîëåíû ñ ðàáîòû!");
        PlayerInfo[para1][pModel] = skinn;
           PlayerInfo[para1][pChar] = skinn;
           PlayerInfo[para1][pJob] = 0;
           PlayerInfo[para1][pContractTime] = 0;
           MedicBill[playerid] = 0;
           SelectCharPlace[playerid] = 0;
           SelectCharID[playerid] = 0;
           gTeam[playerid] = PlayerInfo[playerid][pTeam];
           SelectChar[playerid] = 0;
           SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
        MedicBill[playerid] = 0;
           SelectCharPlace[playerid] = 0;
           SelectCharID[playerid] = 0;
           SelectChar[playerid] = 0;
           SaveAccounts();
           SaveKilom();
       }
       else
       {
           SendClientMessage(playerid, COLOR_GREY, "  Ýòîò èãðîê íàõîäèòñÿ â íàñòîÿùåå âðåìÿ,  ðîçûñêå/Ìåíÿåò Êîìàíäó/èëè ×ëåí ñåìüè.");
           return 1;
       }
      }
     }//not connected
    }
    else
    {
     SendClientMessage(playerid, COLOR_GRAD1, "   Âû íå óïîëíîìî÷åíû èñïîëüçîâàòü ýòó êîìàíäó (Ëèäåðàì òîëüêî!");
    }
   }
   return 1;
  }

Автор - Dimka_71rus
Дата добавления - 29.01.2012 в 17:59:20
  • Страница 1 из 1
  • 1
Поиск:
Загрузка страницы, займет меньше минуты...
Загрузка...

Статистика Форума
Последнии темы Читаемые темы Лучшие пользователи Новые пользователи
Система телефонов поломалась
Не в себе
фильм скалайн
Трансформеры 3
форсаж 6
Ищу [FS]Для админок на сервер
нужны координаты карты для отметки зон...
Помогите найти мод
pawno урок автоматические ворота
обращение к скриптерам.
Вопросы по скриптингу
Ваши ошибки при компиляции GM/FS

Вопросы по скриптингу

(1081)

Считаем до 1000

(274)

Ваши ошибки при компиляция gm

(260)

Набор в команду

(80)

Ваши ошибки при компиляции GM/FS

(71)

вопроосы по скриптингу от 22.04.2013

(64)

Баннеробмен

(64)

несколько команд на samp 0.3 c

(64)

Оценки сайта samp-pawno.ru

(55)

Заказ хостинга

(51)

Набор в команду(форум)

(45)

Урок №61 по созданию системы авто для GodFather

(45)

admin

(3869)

[east_side]_trane

(443)

TWiX

(316)

valych

(501)

drifter-dron

(477)

danik_rok

(317)

Dimka_71rus

(360)

Drifter96

(300)

MaNb9K

(220)

[MTA]MaPeR5518

(181)

Dima_Tkach

(107)

Nik_Ull

(184)

ps798829

(Среда 08:23:47)

system32xzxz

(Четверг 09:25:24)

torbin169

(Суббота 23:09:29)

kuchuk_00

(Суббота 17:10:14)

artem_boyko_3

(Суббота 15:57:37)

greggelbak

(Среда 18:29:37)

vladisvlavs

(Среда 13:51:57)

add02102002

(Понедельник 22:37:15)

Диман221

(Понедельник 18:12:45)

almas051004

(Воскресенье 11:05:32)

megasuccessms

(Суббота 14:15:36)

nawe

(Пятница 22:25:23)

Вверх
12:01:42
ОбновитьСмайлыУправление мини-чатом
ЧАТ-PAWNO
2010-2025

vkontakte :samp-pawno.ru: