/undercover
#1

Hi ... I have someone give me the /undercover ? But that does not change the skin but that you get invisible on map if anyone has please give me the command to me .. thanks ..
Reply
#2

here mate

pawn Код:
}
    if(strcmp(cmd, "/undercover", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
        {
                if(PlayerInfo[playerid][pRank] < 3)
                {
                    SendClientMessage(playerid, COLOR_GREY, "  You need to be Rank 3 or Higher for this action!");
                return 1;
                }
                new x_nr[256];
                x_nr = strtok(cmdtext, idx);
                if(!strlen(x_nr))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /undercover list then /undercover [skin id]");
                    return 1;
                }
            if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
            {
                if(strcmp(x_nr,"list",true) == 0)
                {
                        SendClientMessage(playerid, COLOR_YELLOW, "_________Skin_List_________");
                        SendClientMessage(playerid, COLOR_GRAD1, "1: Agent 2: Staff");
                    SendClientMessage(playerid, COLOR_GRAD2, "3: Gay man 4: Hustler");
                    SendClientMessage(playerid, COLOR_GRAD3, "5: Random Male 6: Swampy Hippy");
                    SendClientMessage(playerid, COLOR_GRAD4, "7: Hotel Waiter (Girl) 8: Random Female");
                    SendClientMessage(playerid, COLOR_GRAD5, "9: Michelle Cannes 10: Katie Zhan");
                SendClientMessage(playerid, COLOR_GRAD6, "11: Biker uniform 0: Go back to your normal uniform");
                    return 1;
                }
            else if(strcmp(x_nr,"1",true) == 0)
          {
              SetPlayerSkin(playerid, 165);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Agent.");
            return 1;
                    }
              else if(strcmp(x_nr,"2",true) == 0)
          {
            SetPlayerSkin(playerid, 217);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Staff member.");
            return 1;
          }
          else if(strcmp(x_nr,"3",true) == 0)
                    {
                        SetPlayerSkin(playerid, 170);
                        SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Gay man.");
                        return 1;
                    }
          else if(strcmp(x_nr,"4",true) == 0)
          {
                SetPlayerSkin(playerid, 21);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hustler.");
            return 1;
                    }
                    else if(strcmp(x_nr,"5",true) == 0)
                    {
                SetPlayerSkin(playerid, 60);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random guy.");
            return 1;
                    }
          else if(strcmp(x_nr,"6",true) == 0)
          {
                SetPlayerSkin(playerid, 72);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Swampy Hippy.");
            return 1;
          }
          else if(strcmp(x_nr,"7",true) == 0)
            {
            SetPlayerSkin(playerid, 152);
            SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Hotel Waiter.");
            return 1;
          }
                else if(strcmp(x_nr,"8",true) == 0)
                    {
                        SetPlayerSkin(playerid, 233);
                    SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as a Random girl.");
                    return 1;
                }
                else if(strcmp(x_nr,"9",true) == 0)
                {
                    SetPlayerSkin(playerid, 192);
                SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Michelle Cannes.");
                return 1;
            }
          else if(strcmp(x_nr,"10",true) == 0)
          {
                SetPlayerSkin(playerid, 193);
                SendClientMessage(playerid, COLOR_GRAD2, "You are now undercover as Katie Zahn.");
            return 1;
          }
          else if(strcmp(x_nr,"11",true) == 0)
          {
                SetPlayerSkin(playerid, 284);
                SendClientMessage(playerid, COLOR_GRAD2, "You have put on your Biker Uniform.");
            return 1;
          }
          else if(strcmp(x_nr,"0",true) == 0)
          {
                if(PlayerInfo[playerid][pRank] == 3)
                {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string,sizeof(string), "* %s puts his Undercover uniform back in the locker.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SafeGivePlayerWeapon(playerid, 3, 1);
                SafeGivePlayerWeapon(playerid, 24, 50);
              SetPlayerSkin(playerid, 280);
            }
            else if(PlayerInfo[playerid][pRank] > 3)
                {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string,sizeof(string), "* %s puts his Undercover uniform back in the locker.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                SafeGivePlayerWeapon(playerid, 3, 1);
                SafeGivePlayerWeapon(playerid, 24, 50);
              SetPlayerSkin(playerid, 281);
            }
            else if(PlayerInfo[playerid][pRank] == 6)
            {
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string,sizeof(string), "* %s puts his Undercover uniform back in the locker.", sendername);
              ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
              SafeGivePlayerWeapon(playerid, 3, 1);
              SafeGivePlayerWeapon(playerid, 24, 50);
              SetPlayerSkin(playerid, 283);
            }
                    }
                }
                else
        {
dunnoh if u want that but well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)