1 post in this topic

Хочу вам показать простенький код для банданы на лицо :)

Спойлер

#define NotBandit        2 "Вы не состоите в банде."

 

Спойлер

if(strcmp(cmd, "/bandana", true) == 0 || strcmp(cmd, "/band", true) == 0)
        {
                        if (!IsAGang(playerid)) return    SendMe(playerid,CGRADD,NotBandit);
                        if(GetPVarInt(playerid,"mask") == 0 )
                        {
                                SetPVarInt(playerid,"mask",1);
                                SetPlayerToTeamColor(playerid);
                                SendMe(playerid, CBLUEE, "Вы надели на лицо бандану");
                                if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {                           ApplyAnimation(playerid,"ShopPic","ROB_Shifty", 4.1, 0, 0, 0, 0, 0 ,1); }
                                switch(PINFO[playerid][pMember])
                                {
                                case 12: SetPlayerAttachedObject(playerid, 0, 18915, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
                                case 13: SetPlayerAttachedObject(playerid, 0, 18916, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
                                case 18: SetPlayerAttachedObject(playerid, 0, 18917, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
                                case 15: SetPlayerAttachedObject(playerid, 0, 18918, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
                                case 17: SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
                                }
                        }
                        else
                        {
                                SendMe(playerid, CBLUEE, "Вы сняли с лица бандану");
                                RemovePlayerAttachedObject(playerid, 0);
                                SetPVarInt(playerid,"mask",0);
                                ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
                                SetPlayerColor(playerid, 0xFFFFFF20);
                        }
                        return true;
    }

 

Автор: Joni

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • terro
      By terro
      AddPlayerClass(104,1757.4983,-1898.6315,13.5621,88.2737,0,0,0,0,0,0); //  что из этого нужно прописать чтобы эти корды стали спавном на сервере, дайте конкретные цифры