1 post in this topic

Спойлер
//==============================================================================
        if(strcmp(cmd, "/ydar", true) == 0)
        {
                if(IsPlayerConnected(playerid))
                {
                    if(gPlayerLogged[playerid] == 0)
                {
                    SCM(playerid, COLOR_RED, "** Сначала нужно залогиниться.");
                        return 1;
                }
                if(PlayerInfo[playerid][pLevel] < 3)
                {
                    SCM(playerid, COLOR_RED, "** Тебе нужно быть 3 уровня, чтобы использовать эту команду.");
                    return 1;
                }
                if(KnockedDown[playerid] == 1)
                {
                    SCM(playerid, COLOR_RED, "** Вас отпиздили, ты не можешь сделать это.");
                    return 1;
                }
                if(MnePizda[playerid] == 1)
                {
                    SCM(playerid, COLOR_RED, "** Вы не можете сделать это.");
                    return 1;
                }
            if(PlayerInfo[playerid][pSex] == 2)
            {
                SCM(playerid, COLOR_RED, "** Вы слишком слабая, чтобы навернуть кого-нибудь.");
                    return 1;
            }
            if(PlayerBoxing[playerid] != 0)
            {
                SCM(playerid, COLOR_RED, "** Нельзя использовать эту команду во время драки.");
                return 1;
            }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                        {
                                SCM(playerid, COLOR_ISPOLZUY, "*Используйте: /knockout [ид игрока]");
                                return 1;
                        }
                        giveplayerid = ReturnUser(tmp);
                        if(IsPlayerConnected(giveplayerid))
                        {
                            if(giveplayerid != INVALID_PLAYER_ID)
                            {
                                if (ProxDetectorS(1.0, playerid, giveplayerid))
                                {
                                           if(KnockedDown[giveplayerid] != 1 || PlayerCuffed[giveplayerid] > 0)
                                        {
                                            if(giveplayerid == playerid)
                                            {
                                                SCM(playerid, COLOR_RED, "** Вы не можете навернуть самого себя.");
                                                return 1;
                                            }
                                            if(PlayerInfo[giveplayerid][pSex] == 2)
                                            {
                                                SCM(playerid, COLOR_RED, "** Подлец! Захотел навернуть женщину???");
                                                return 1;
                                            }
                                            if(IsPlayerInAnyVehicle(giveplayerid))
                                            {
                                                return 1;
                                            }
                                            new giveplayername[MAX_PLAYER_NAME];
                                            GetPlayerName(playerid, sendername, sizeof(sendername));
                                            GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
                                            new rands = random(2)+1;
                                                        format(string, sizeof(string), "* %s собираеться ударить %s и сбить его с ног.", sendername, giveplayername);
                                                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            ApplyAnimation(playerid,"FIGHT_D","FightD_3",4.0,0,1,1,0,0);
                                                        if(rands == 1)
                                                        {
                                                            TogglePlayerControllable(giveplayerid, 0);
                                                                ApplyAnimation(giveplayerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                                                                SetTimerEx("ClearKnock", 20000, false, "i", giveplayerid);
                                                                KnockedDown[giveplayerid] = 1;
                                                                format(string, sizeof(string), "* %s Уебал по голове.", sendername);
                                                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                                        }
                                                        else
                                                        {
                                                            format(string, sizeof(string), "* %s уворачиваеться от удара.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                                        }
                                                        return 1;
                                                }
                                                else
                                                {
                                                    SCM(playerid, COLOR_RED, "** Этот игрок уже обездвижен.");
                                                }
                                }
                                else
                                {
                                    SCM(playerid, COLOR_RED, "** Игрок находится не рядом с тобой.");
                                }
                            }
                        }
 
                }
                return 1;
        }

 

Автор: Артур321

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Вадим1234
      By Вадим1234
      CMD:vips(playerid) {     if(GetPVarInt(playerid, "logged") == 0) return 1;     if(player_info[playerid][ADMIN] < 2)        return Send(playerid, COLOR_WHITE, "Команда не обнаружена! Используйте {ffcc00}/menu {FFFFFF}для просмотра команд");     foreach(new i: Player)     {         if(player_info[playerid][VIP] != -1)         {             new fmt_msg[85];             format             (                 fmt_msg, sizeof fmt_msg,                 "%s[%d] (%d DAYS)",                 player_info[NAME],                 i,                 player_info[VIP]             );             Send(playerid, COLOR_YELLOW, fmt_msg);         }     }     return 1; }  
    • Senya Kolymbijskij
      By Senya Kolymbijskij
       
      такие ошибки что делать???
      @mr_sasha087 @DEST Помогите!!
      Это строки  там где  SendClientMessage есть @mr_sasha087 @DEST Помогите!!
      @odosenok