[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
/radio and /departments
Дата: 08.07.2010, Четверг, 18:10:41 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 34
Репутация: 7+
Здраствуйте.При очередном добавлении фракции (до этого делал только банды) ментов ,у меня не получаеться добавить для них /r and /d чаты.
Просто когда они пишут в эти чаты ,ничего не пишеться,и не происходит.Помогите настроить,как только не старался сделать!
Вот выкладываю вам код /d and /r чата.(В остальном все у фракции сделано нормально,никаких ошибок)При компиляции никаких ошибок не выдавало.
/r чат
Code

if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
      if(PlayerInfo[playerid][pMuted] == 1)
      {
       SendClientMessage(playerid, TEAM_CYAN_COLOR, " Âû íå ìîæåòå ãîâîðèòü, âàñ çàòêíóëè !");
       return 1;
      }
      GetPlayerName(playerid, sendername, sizeof(sendername));
      new length = strlen(cmdtext);
      while ((idx < length) && (cmdtext[idx] <= ' '))
      {
       idx++;
      }
      new offset = idx;
      new result[64];
      while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
      {
       result[idx - offset] = cmdtext[idx];
       idx++;
      }
      result[idx - offset] = EOS;
      if(!strlen(result))
      {
       SendClientMessage(playerid, COLOR_RED, "*Èñïîëüçóéòå: /r [òåêñò]");
       return 1;
      }
//------------------------------------------------------------------------------
      if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
      {
                   if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Ãëàâíî-Êîìàíäóþùèé SAPD %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Çàì.Ãëàâû SAPD %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ãëàâà ÃÁÐ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Ñîòðóäíèê ÃÁÐ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ìëàäøèé Ñîòðóäíèê ÃÁÐ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ãëàâà ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìëàäøèé Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Êóðñàíò SAPD %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Ãëàâíî-Êîìàíäóþùèé SAPD %s: %s", sendername, result);
       }
       SendRadioMessage(1, TEAM_BLUE_COLOR, string);
       printf("%s", string);
       return 1;
      }
//------------------------------------------------------------------------------
      else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
      {

                   if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Äèðåêòîð ÔÁÐ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Çàìåñòèòåëü äèðåêòîðà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Èíñïåêòîð ÔÁÐ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ãëàâà îòäåëà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Çàìåñòèòåëü ãëàâû îòäåëà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ñïåöèàëüíûé àãåíò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ñòàðøèé àãåíò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Àãåíò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìëàäøèé àãåíò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ñòàæåð %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Äèðåêòîð ÔÁÐ %s: %s", sendername, result);
       }
       SendRadioMessage(2, TEAM_BLUE_COLOR, string);
       printf("%s", string);
       return 1;
      }
//------------------------------------------------------------------------------
      else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
      {
          if(PlayerInfo[playerid][pRank] == 14) { format(string, sizeof(string), "* Ãëàâíîêîìàíäóþùèé Àðìèè %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 13) { format(string, sizeof(string), "* Ìèíèñòð Îáîðîíû %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "* Ãåíåðàë-Ïîëêîâíèê %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "* Ãåíåðàë-Ëåéòåíàíò %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Ãåíåðàë-Ìàéîð %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Ïîëêîâíèê %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Ïîäïîëêîâíèê %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ìàéîð %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Êàïèòàí %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ëåéòåíàíò  %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ñòàðøèíà %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ñåðæàíò  %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Åôðåéòîð %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ðÿäîâîé  %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Ãëàâíîêîìàíäóþùèé Àðìèè %s: %s", sendername, result);
       }
       SendRadioMessage(3, COLOR_GREEN, string);
       printf("%s", string);
       return 1;
      }
//------------------------------------------------------------------------------
            else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
       {
                   if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "* Ìýð Øòàòà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "* Çàì. Ìýðà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Íà÷àëüíèê Îõðàíû %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Íà÷àëüíèê ÔÑïÍ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Àäâîêàò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ìèíèñòð Êóëüòóðû %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Çàì. Ìèíèñòðà Êóëüòóðû %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ìèíèñòð Ôèíàíñîâ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Çàì.Ìèíèñòðà Ôèíàíñîâ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Òåëîõðàíèòåëü %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ñëóæàùèé ÔÑïÍ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Âîäèòåëü %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Ìåð Øòàòà %s: %s", sendername, result);
       }
       SendRadioMessage(7, TEAM_BLUE_COLOR, string);
       printf("%s", string);
       return 1;
      }
//------------------------------------------------------------------------------
            else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
       {
                   if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Ìèíèñòð Çäðàâîîõðàíåíèÿ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Çàì.Ìèíèñòðà çäðàâîîõðàíåíèÿ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Ãëàââðà÷ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ïàòîëîãîàíàòîì %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Õèðóðã %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ïñèõèàòîð %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Òåðàïåâò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ìåäáðàò %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìåäñåñòðà %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ïðàêòèêàíò %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Ìèíèñòð Çäðàâîîõðàíåíèÿ %s: %s", sendername, result);
       }
       SendRadioMessage(4, TEAM_BLUE_COLOR, string);
       printf("%s", string);
       return 1;
      }

//------------------------------------------------------------------------------
                if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
      {
                   if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Íà÷àëüíèê ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Çàì.Ãëàâû ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ïîäïîëêîâíèê %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Ìàéîð %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ñòàðøèé ïî îòäåëó %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ìë.Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ïàòðóëüíûé %s: %s", sendername, result); }
       else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ðÿäîâîé %s: %s", sendername, result); }
       else
       {
        format(string, sizeof(string), "* Íà÷àëüíèê ÄÏÑ %s: %s", sendername, result);
       }
       SendRadioMessage(1, TEAM_BLUE_COLOR, string);
       printf("%s", string);
       return 1;
      }
//------------------------------------------------------------------------------
      else
      {
       SendClientMessage(playerid, COLOR_RED, " Âû íå ÷àñòü ãðóïïû !");
       return 1;
      }
     }
     return 1;
    }

Добавлено (08.07.2010, 18.10)
---------------------------------------------
/d чат.

Code

if(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
     GetPlayerName(playerid, sendername, sizeof(sendername));
     new length = strlen(cmdtext);
     while ((idx < length) && (cmdtext[idx] <= ' '))
     {
      idx++;
     }
     new offset = idx;
     new result[64];
     while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
     {
      result[idx - offset] = cmdtext[idx];
      idx++;
     }
     result[idx - offset] = EOS;
     if(!strlen(result))
     {
      SendClientMessage(playerid, COLOR_GRAD2, "Ïîäñêàçêà: (/d)epartments [department chat]");
      return 1;
     }
     if(PlayerInfo[playerid][pMuted] == 1)
     {
      SendClientMessage(playerid, TEAM_CYAN_COLOR, "Âû íå ìîæåòå ãîâîðèòü!");
      return 0;
     }
//------------------------------------------------------------------------------
     if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
     {
         if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Ãëàâíî-Êîìàíäóþùèé SAPD %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Çàì.Ãëàâû SAPD %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ãëàâà ÃÁÐ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Ñîòðóäíèê ÃÁÐ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ìëàäøèé Ñîòðóäíèê ÃÁÐ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ãëàâà ÄÏÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìëàäøèé Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Êóðñàíò SAPD %s: %s", sendername, result); }
      else
      {
       format(string, sizeof(string), "** Ãëàâíî-Êîìàíäóþùèé SAPD %s: %s **", sendername, result);
      }
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
      return 1;
     }
     else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
     {
         if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Äèðåêòîð ÔÁÐ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Çàìåñòèòåëü äèðåêòîðà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Èíñïåêòîð ÔÁÐ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ãëàâà îòäåëà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Çàìåñòèòåëü ãëàâû îòäåëà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ñïåöèàëüíûé àãåíò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ñòàðøèé àãåíò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Àãåíò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìëàäøèé àãåíò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ñòàæåð %s: %s", sendername, result); }
      else
      {
       format(string, sizeof(string), "** Äèðåêòîð ÔÁÐ %s: %s **", sendername, result);
      }
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
      return 1;
     }
     else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
     {
         if(PlayerInfo[playerid][pRank] == 20) { format(string, sizeof(string), "* Ãëàâíîêîìàíäóþùèé Àðìèè %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 19) { format(string, sizeof(string), "* Çàì.Ãëàâ ÂÂÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 18) { format(string, sizeof(string), "* Ñòàðøèé Ïèëîò Äåëüòà Îòðÿäà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 17) { format(string, sizeof(string), "* Ïèëîò Äåëüòà Îòðÿäà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 16) { format(string, sizeof(string), "* Ïèëîò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 15) { format(string, sizeof(string), "* Ó÷àùèéñÿ Ïèëîò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 14) { format(string, sizeof(string), "* Íîâîáðàíåö ÂÂÑ %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 13) { format(string, sizeof(string), "* Ìèíèñòð Îáîðîíû %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "* Ãåíåðàë-Ïîëêîâíèê %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "* Ãåíåðàë-Ëåéòåíàíò %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Ãåíåðàë-Ìàéîð %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Ïîëêîâíèê %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Ïîäïîëêîâíèê %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ìàéîð %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Êàïèòàí %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ëåéòåíàíò  %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ñòàðøèíà %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ñåðæàíò  %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Åôðåéòîð %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ðÿäîâîé  %s: %s", sendername, result); }
      else
      {
       format(string, sizeof(string), "** Ãëàâíîêîìàíäóþùèé Àðìèè %s: %s **", sendername, result);
      }
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
      return 1;
     }
     else if(gTeam[playerid] == 1||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)
     {
      if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Ìèíèñòð çäðàâîîõðàíåíèÿ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Çàì.Ìèíèñòðà çäðàâîîõðàíåíèÿ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* ÃëàâÂðà÷ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ïàòîëîãîàíàòîì %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Õèðóðã %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ïñèõèàòîð %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Òåðàïåâò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ìåäáðàò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ìåäñåñòðà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ïðàêòèêàíò %s: %s", sendername, result); }
      else
      format(string, sizeof(string), "** Ìèíèñòð Çäðàâîîõðàíåíèÿ %s: %s **", sendername, result);
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
      return 1;
     }
     else if(PlayerInfo[playerid][pLeader] == 7||PlayerInfo[playerid][pMember] == 7)
     {
                   if(PlayerInfo[playerid][pRank] == 12) { format(string, sizeof(string), "* Ìýð Øòàòà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "* Çàì. Ìýðà %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "* Íà÷àëüíèê Îõðàíû %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Íà÷àëüíèê ÔÑïÍ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Àäâîêàò %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ìèíèñòð Êóëüòóðû %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Çàì. Ìèíèñòðà Êóëüòóðû %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ìèíèñòð Ôèíàíñîâ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Çàì.Ìèíèñòðà Ôèíàíñîâ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Òåëîõðàíèòåëü %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ñëóæàùèé ÔÑïÍ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Âîäèòåëü %s: %s", sendername, result); }
      else
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
         return 1;
     }
     else if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
     {
         if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "* Íà÷àëüíèê ÄÏÑ %s: %s", sendername, result); }
                  else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "* Çàì.Ãëàâû ÄÏÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "* Ïîëêîâíèê %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* Ïîäïîëêîâíèê %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* Ìàéîð %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* Ñòàðøèé ïî îòäåëó %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* Ìë.Èíñïåêòîð ÄÏÑ %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* Ïàòðóëüíûé %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* Ðÿäîâîé %s: %s", sendername, result); }
      else
      {
       format(string, sizeof(string), "** Íà÷àëüíèê ÄÏÑ %s: %s **", sendername, result);
      }
                  SendTeamMessage(2, COLOR_ALLDEPT, string);
      SendFamilyMessage(7, COLOR_ALLDEPT, string);
      printf("%s", string);
      return 1;
     }
     else
     {
      SendClientMessage(playerid, COLOR_GRAD2, "   Âû íå â ñèë. ñòðóêòóðàõ !");
      return 1;
     }
    }
    return 1;
   }
Дата: 09.07.2010, Пятница, 11:24:20 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 34
Репутация: 7+
так а что мне с моей проблеммой делать?
Дата: 09.07.2010, Пятница, 15:57:33 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 34
Репутация: 7+
Quote (velix)
Cамый тупой способ это сделать 20 рангов даже если 9-20 одинаковые тоесть с 9 до 20 будет ранг шеф

Я так и сделал,не помогло.Представляешь я когда в чате пишу в игре,ничего невидно в чате.А стоит свернуть игру и посмотреть в консоль сервера,в ней все написано!!!Что делать?
  • Страница 1 из 1
  • 1
Поиск: