Форум

  • Страница 1 из 3
  • 1
  • 2
  • 3
  • »
Модератор форума: dr40  
Форум | www.SAMP-TEAM.com » Wiki SA-MP » Вопросы по скриптингу » Смена скинов у фракций
Смена скинов у фракций
Так вот вопрос таков:
У меня есть мод на основе RLS и я хочу чтобы когда игрока принимали во фракцию его не перекидывало на диалог о выборе скина а ему автоматом устанавливался определенный и он не появлялся во фракции а оставался на том месте где был

Большое спасибо (надеюсь) за помощь smile
15.03.2014 в 14:03
Скиньте код команды. И код диалога.
15.03.2014 в 16:35
if(strcmp(cmd, "/invite", true) == 0)
{
new para1;
new ftext[25];
new invite[512];
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Ââåäèòå: /invite [id]");
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 14)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(IsPlayerInAnyVehicle(para1)) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê â ìàøèíå!");
if (PlayerInfo[para1][pPbiskey] !=255) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê áèçíåñìåí!");
if (PlayerInfo[para1][pAvtomas] !=255) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê âëàäååò àâòîìàñòåðñêîé!");
if (PlayerInfo[para1][pLevel] < 4) return SendClientMessage(playerid, COLOR_GREY, "Ïðè¸ì âîçìîæåí ñ 4 lvl");
if (PlayerInfo[para1][pMember] != 0) return SendClientMessage(playerid, COLOR_GREY, "Èãðîê óæå ãäå òî ñîñòîèò");
if (PlayerInfo[para1][pVoennik] == 0) return SendClientMessage(playerid, COLOR_GREY, "×åëîâåê íå ñëóæèë â àðìèè");
if(PlayerInfo[para1][pWarns] >= 1) return SendClientMessage(playerid, COLOR_GRAD1,"Ó èãðîêà Warn.");
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 14) { ftext = "LSPD"; InviteSkin[para1] = 280; }
else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
InviteOffer[para1] = PlayerInfo[playerid][pMember];
format(string, sizeof(string), "Âû ïðèãëàñèëè %s ïðèñîåäåíèòñÿ ê %s.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_BLUE, string);
format(invite,sizeof(invite), "%s ïðèãëàøàåò Âàñ ïðèñîåäåíèòüñÿ ê %s\n- Âû ñîãëàñíû?", sendername,ftext);
ShowPlayerDialog(para1,76,DIALOG_STYLE_MSGBOX,"Ïðèãëàøåíèå",invite, "Äà", "Íåò");
}
}
}//not connected
15.03.2014 в 19:41
76 диалог скиньте. Используйте тег [code] и слова без иероглифов.
15.03.2014 в 20:20
Код

    case 76:
       {
         if(response)
         {                   SetPlayerSkin(playerid,InviteSkin[playerid]);
        PlayerInfo[playerid][pMember] = InviteOffer[playerid];
        PlayerInfo[playerid][pRank] = 1;
         SendClientMessage(playerid, COLOR_RED, "Используйте клавишу 'Быстрый бег' (пробел по умолчанию)");
        SendClientMessage(playerid, COLOR_RED, "Используйте клавишу 'Вверх,вниз' (W,S по умолчанию)");
        SetPlayerInterior(playerid,5);
        ShowMenuForPlayer(ChoseSkin,playerid);
        new rand = random(sizeof(gInviteSpawns));
        SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
        SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
        SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
        SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
        TogglePlayerControllable(playerid, 0);
           SelectChar[playerid] = 255;
           PlayerInfo[playerid][pJob] = 0;
           SelectCharID[playerid] = PlayerInfo[playerid][pMember];
           SelectCharPlace[playerid] = 1;
           PlayerInfo[playerid][pModel] = InviteSkin[playerid];
           new skin =2 + random(100);
        SetPlayerVirtualWorld(playerid,skin);
           OnPlayerUpdateRL(playerid);
    return 1;
          }
     else
     {
     InviteSkin[playerid] = 0;
     InviteOffer[playerid] = 999;
     return 1;
     }
    }
16.03.2014 в 09:03
Код
case 76:  
        {  
          if(response)  
          {                    
     SetPlayerSkin(playerid,InviteSkin[playerid]);  
            PlayerInfo[playerid][pMember] = InviteOffer[playerid];  
            PlayerInfo[playerid][pRank] = 1;  
            PlayerInfo[playerid][pJob] = 0;  
            PlayerInfo[playerid][pModel] = InviteSkin[playerid];  
            OnPlayerUpdateRL(playerid);  
         return 1;  
           }  
      else  
      {  
      InviteSkin[playerid] = 0;  
      InviteOffer[playerid] = 999;  
      return 1;  
      }  
     }
16.03.2014 в 16:07
Спасибо большое и еще вопрос вот у меня дома а как сделать чтобы над иконками был 3д тест владелец такойто или свободен

Добавлено (16.03.2014, 19:21)
---------------------------------------------
И еще так к теме у меня на мини карте отображаются только игроки состоящие во фракциях а обычные не во фракции не отображаются

И еще мне необходимо заменить команду /f на ! которая посылает сообщение в чат департамента тоесть мне нужно сделать команду без слеша

Помогите Заранее большое спасибо
16.03.2014 в 19:21
http://www.samp-team.com/forum/51-5763-1 только код от /f вставьте. И не используйте в этом коде return 1, только return 0
Цвета думаю связаны с этим http://wiki.sa-mp.com/wiki/SetPlayerMarkerForPlayer
Дома http://www.samp-team.com/forum/51-6693-1
16.03.2014 в 20:23
http://гта-самп.рф/command.txt

Это вся команда /f когда я пытаюсь сделать как написано там выдает штук 15 ероров
16.03.2014 в 22:37
Код
if(text[0] == '!')  
  {
       if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "У Вас бан чата!");
     if(gag[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "У Вас кляп, {FF0000}x {ffffff}Вы не можете говорить!");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new result[256];
                         result = text;
    if(!strlen(text)) return    SendClientMessage(playerid, COLOR_WHITE, "Используйте: ! [текст]");
    if(Flood[playerid]> 0) return SendClientMessage(playerid, 0xFFD5BBAA, "Не флуди!");
    Flood[playerid] = 4;
    if (PlayerInfo[playerid][pMember] >= 1)
    {
        new member = PlayerInfo[playerid][pMember];
        if(member==5)
        {
         if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Дон %s: %s", sendername, result); }
         else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Консильери %s: %s", sendername, result); }
            else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Младший Босс %s: %s", sendername, result); }
             else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Капо %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Сотто-Капо %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Боец %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Солдато %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Сомбаттенте %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Ассосиатоёр %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Новицио %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Новицио %s: %s", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
      else if(member==8)
     {
         if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Директор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Зам. директора %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Крупье %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Охранник %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Чипер %s: %s", sendername, result); }
      else { format(string, sizeof(string), "Чипер %s: %s", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
        else if(member==6)
        {
            if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Кумитё %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Оябун-кобун %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Cайко комон %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Оядзи %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Камбу %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Со-хобунтё %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Вакагасира %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Сятейгасира %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Кёдай %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Вакасю %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Вакасю %s: %s", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==9)
     {
         if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Главный редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Журналист %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Папарацци %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Фотограф %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Стажер %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Стажер %s[%d]: %s. **", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==16)
     {
         if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Главный редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Журналист %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Папарацци %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Фотограф %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Стажер %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Стажер %s[%d]: %s. **", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==20)
     {
         if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Главный редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Редактор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Журналист %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Папарацци %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Фотограф %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Стажер %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Стажер %s[%d]: %s. **", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==11)
     {
     if(duty[playerid] ==0) return  SendClientMessage(playerid, COLOR_WHITE, "Вам нужно начать рабочий день в автошколе!");
         if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Управляющий %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Директор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Старший менеджер %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Мл. менеджер %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Кординатор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Инструктор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Экзаменатор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Стажёр %s: %s", sendername, result); }
      else { format(string, sizeof(string), "Стажёр %s[%d]: %s. **", sendername, playerid, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==12)
                 {
                   if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Биг Вилли %s: %s", sendername, result); }
                   else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Райч Нига %s: %s", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Фолкс %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Федерал Блок %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Гангстер %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Ап Бро %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Гун брo %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Крэкер  %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Младший Нига %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Блайд %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Гун бр %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 
16.03.2014 в 23:15
Код
else if(member==17)
                 {
                      if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Нестро %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Тесосеро %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Инвасор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Сабио %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Мирандо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Лас Геррас %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Геттор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Тирадор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Перро %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Перро %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==18)
                 {
                     if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Аджунто %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Ауторидад %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Бандидо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Эрмано %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Джуниор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Мачo %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Амиго  %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Ладрон %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==13)
                 {
                     if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падрино %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Лидер V.E.G. %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Асесор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Авторитарио %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Асесино %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Амиго %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Эстимадо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Сольдадо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Криминаль %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==15)
                 {
                     if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Мэд Дог %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Легенд %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Де Кинг %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Мобста %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] О.Г. %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Гангста %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Юонг %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Килла %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Хастла %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Плэйя %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "Плэйя %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==14)
     {
         if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Вор в законе %s: %s", sendername, result); }
         else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Авторитет %s: %s", sendername, result); }
         else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Смотрящий %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Вор %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Жиган %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Вышибала %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Фраер %s: %s", sendername, result); }
      else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Шнырь %s: %s", sendername, result); }
      else { format(string, sizeof(string), "[F] Шнырь %s: %s", sendername, result); }
      SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
     }
     else if(member==17)
                 {
                      if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Нестро %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Тесосеро %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Инвасор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Сабио %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Мирандо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Лас Геррас %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Геттор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Тирадор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Перро %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Перро %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==18)
                 {
                     if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Аджунто %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Ауторидад %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Бандидо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Эрмано %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Джуниор %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Мачo %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Амиго  %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Ладрон %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
                 else if(member==13)
                 {
                     if(PlayerInfo[playerid][pRank] == 11) { format(string, sizeof(string), "[F] Падре %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 10) { format(string, sizeof(string), "[F] Падрино %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "[F] Падрино %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "[F] Лидер V.E.G. %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "[F] Авторитарио %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "[F] Асесино %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "[F] Амиго %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "[F] Эстимадо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "[F] Сольдадо %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "[F] Криминаль %s: %s", sendername, result); }
                     else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     else { format(string, sizeof(string), "[F] Новато %s: %s", sendername, result); }
                     SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_AZTECAS_COLOR, string);
                 }
     return 0;
    }
    else
    {
     SendClientMessage(playerid, COLOR_GRAD2, "{FF0000}x {ffffff}Вы не член какой-либо фракции!");
     return 1;
    }
            }
16.03.2014 в 23:15
Выдает 4 ерора ну ладно без нее обойдемся и еще вопрос как мне добавить время в правый угол ?
17.03.2014 в 15:44
17.03.2014 в 15:57
Спасибо вам огромное все работает но вот еще проблема возникла когда логинишься ты падаешь с неба как это исправить?
17.03.2014 в 21:20
Это появилось после установки скрипта или уже было ранее?
17.03.2014 в 22:23
Форум | www.SAMP-TEAM.com » Wiki SA-MP » Вопросы по скриптингу » Смена скинов у фракций
  • Страница 1 из 3
  • 1
  • 2
  • 3
  • »
Поиск: