• Страница 1 из 1
  • 1
Форум » PAWNO » Уроки Pawno » [Мануал] Команда (/pass) (Диалог) [RLS]
[Мануал] Команда (/pass) (Диалог) [RLS]
Дмитрий Дата: Вторник, 28.05.2013, 15:50 | Сообщение # 1 | Сообщить о нерабочей теме


Аватар для Дмитрий

Доброго времени суток.
Сегодня нашел свой старый мод и решил посмотреть что там есть и нашел эту команду.
Решил выложить суда, вдруг кому да пригодится.



Код
else if(strcmp(cmd,"/pass",true) == 0)  
     {  
         tmp = strtok(cmdtext, idx);  
         if(!strlen(tmp)) return      SendClientMessage(playerid, COLOR_WHITE, "Введите: /pass [id]");  
         giveplayerid = ReturnUser(tmp);  
         if(IsPlayerConnected(giveplayerid))  
         {  
             if(giveplayerid != INVALID_PLAYER_ID)  
             {  
                 if (ProxDetectorS(8.0, playerid, giveplayerid))  
                 {  
                     GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));  
                     GetPlayerName(playerid, sendername, sizeof(sendername));  
                     //фракции  
                     new ttext[32];  
                     if(PlayerInfo[playerid][pMember] == 0) { ttext = "Гражданин"; }  
                     else if(PlayerInfo[playerid][pMember] == 1) { ttext = "Полиция Лос-Сантос"; }  
                     else if(PlayerInfo[playerid][pMember] == 2) { ttext = "Федеральное Бюро Расследований"; }  
                     else if(PlayerInfo[playerid][pMember] == 3) { ttext = "Военно-Морской Флот"; }  
                     else if(PlayerInfo[playerid][pMember] == 4) { ttext = "Больница Сан-Фиерро"; }  
                     else if(PlayerInfo[playerid][pMember] == 5) { ttext = "La Cosa Nostra"; }  
                     else if(PlayerInfo[playerid][pMember] == 6) { ttext = "Yakuza"; }  
                     else if(PlayerInfo[playerid][pMember] == 7) { ttext = "Мэрия Лос-Сантос"; }  
                     else if(PlayerInfo[playerid][pMember] == 8) { ttext = "Casino Rich"; }  
                     else if(PlayerInfo[playerid][pMember] == 9) { ttext = "Радиоцентр Сан-Фиерро"; }  
                     else if(PlayerInfo[playerid][pMember] == 10) { ttext = "Полиция Сан-Фиерро"; }  
                     else if(PlayerInfo[playerid][pMember] == 11) { ttext = "Инструкторы"; }  
                     else if(PlayerInfo[playerid][pMember] == 12) { ttext = "The Ballas"; }  
                     else if(PlayerInfo[playerid][pMember] == 13) { ttext = "Los Santos Vagos"; }  
                     else if(PlayerInfo[playerid][pMember] == 14) { ttext = "Russian Mafia"; }  
                     else if(PlayerInfo[playerid][pMember] == 15) { ttext = "Grove Street"; }  
                     else if(PlayerInfo[playerid][pMember] == 16) { ttext = "Радиоцентр Лас-Вентурас"; }  
                     else if(PlayerInfo[playerid][pMember] == 17) { ttext = "Varios Los Aztecas"; }  
                     else if(PlayerInfo[playerid][pMember] == 18) { ttext = "The Rifa"; }  
                     else if(PlayerInfo[playerid][pMember] == 19) { ttext = "Сухопутные Войска"; }  
                     else if(PlayerInfo[playerid][pMember] == 21) { ttext = "Полиция Лас-Вентурас"; }  
                     else if(PlayerInfo[playerid][pMember] == 22) { ttext = "Больница Лос-Сантос"; }  
                     else if(PlayerInfo[playerid][pMember] == 23) { ttext = "Мэрия Сан-Фиерро"; }  
                     else if(PlayerInfo[playerid][pMember] == 24) { ttext = "Военно-Воздушные Силы"; }  
                     else if(PlayerInfo[playerid][pMember] == 25) { ttext = "Мэрия Лас-Вентурас"; }  
                     else if(PlayerInfo[playerid][pMember] == 26) { ttext = "Больница Лас-Вентурас"; }  
                     new jtext[32];  
                     if(PlayerInfo[playerid][pJob] == 1) { jtext = "Водитель автобуса"; }  
                     else if(PlayerInfo[playerid][pJob] == 2) { jtext = "Механик"; }  
                     else if(PlayerInfo[playerid][pJob] == 3) { jtext = "Продавец хотдогов"; }  
                     else if(PlayerInfo[playerid][pJob] == 4) { jtext = "Таксист"; }  
                     else if(PlayerInfo[playerid][pJob] == 5) { jtext = "Развозчик продуктов"; }  
                     else if(PlayerInfo[playerid][pJob] == 6) { jtext = "Тренер"; }  
                     else if(PlayerInfo[playerid][pJob] == 8) { jtext = "Инкосатор"; }  
                     else { jtext = "Безработный"; }  
                     new level = PlayerInfo[playerid][pLevel];  
                     if(PlayerInfo[playerid][pZvezdi] > 0)  
                     {  
                         SendClientMessage(giveplayerid, COLOR_REDD, "Внимание! Это человек в розыске!");  
                     }  
                     format(string,sizeof(string), "показал свой паспорт %s",giveplayer);  
                     SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000);  
                     GetPlayerName(playerid, sendername, sizeof(sendername));  
                     format(string, sizeof(string), "%s показал(a) свой паспорт", sendername);  
                     ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);  
                     format(string, sizeof(string), "{ffffff}Имя: %s\tТелефон: %d\nПроживание в штате: %d\nРабота: %s\n\nОрганизация: %s\nРанг: %d\nЗаконопослушность: %d", sendername,PlayerInfo[playerid][pPnumber],level,jtext,ttext,PlayerInfo[playerid][pRank],PlayerInfo[playerid][pZakonp]);  
                     ShowPlayerDialog(playerid, 8811, DIALOG_STYLE_MSGBOX, "{ffcc00}Паспорт", string, "Ок", "");  
                 }  
                 else  
                 {  
                     SendClientMessage(playerid, COLOR_GREY, "Вы слишком далеко!");  
                     return 1;  
                 }  
             }  
         }  
         else  
         {  
             SendClientMessage(playerid, COLOR_GREY, "[Ошибка] Игрок не найден!");  
             return 1;  
         }  
         return 1;  
     }  


Автор: AZAT-AK
Прикрепления: 4237513.png(14.7 Kb)


From Russia With Love!
Форум » PAWNO » Уроки Pawno » [Мануал] Команда (/pass) (Диалог) [RLS]
  • Страница 1 из 1
  • 1
Поиск: