[Ajuda]skin org
#1

Olб, estou batendo cabeзa aqui para mudar a forma de aceitar convites, originalmente o player quando convidado escolhe uma skin pertencente a org e eu queria desabilitar ela, ficando da seguinte forma: quando aceito o convite o player vai direto para o spawn e jб com a skin de cargo 1 pertencente a org.
Obs.: Jб consegui desabilitar a funзгo de escolha ( estб em comentario ) e tbm jб coloquei o player para ir direto ao spawn, mas ainda falta a questгo da skin.
Alguem poderia me ajudar nisso?




pawn Код:
if(strcmp(cmd,"/aceitar",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            new x_Emprego[32];
            x_Emprego = strtok(cmdtext, idx);
            if(!strlen(x_Emprego)) {
                SendClientMessage(playerid, COLOR_WHITE, "|__________________ Aceitar __________________|");
                SendClientMessage(playerid, COLOR_WHITE, "Use: aceitar [nome]");
                SendClientMessage(playerid, COLOR_GREY, "Nomes Validos: Transa, drogas, Reparo, Advogado, seguranзa, emprego, aovivo, Refill , Assalto");
                SendClientMessage(playerid, COLOR_GREY, "Nomes Validos: Carro, Taxi, Onibus, Boxe, Medico, Mecanico, Multa ,divorcio, mendigo, convite");
                return 1;
            }
            if(strcmp(x_Emprego,"convite",true) == 0)
            {
                if(InviteOffer[playerid] < 999)
                {
                    if(IsPlayerConnected(InviteOffer[playerid]))
                    {
                        if(PlayerInfo[InviteOffer[playerid]][pLider] == 1) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 282; SetPlayerSkin(playerid, 282); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 2) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 285; SetPlayerSkin(playerid, 285); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 3) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 4) { PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; ChosenSkin[playerid] = 279; SetPlayerSkin(playerid, 279); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 5) { PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 6) { PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 121; SetPlayerSkin(playerid, 121); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 7) { PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; ChosenSkin[playerid] = 163; SetPlayerSkin(playerid, 163); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 8) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 127; SetPlayerSkin(playerid, 127); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 9) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 148; SetPlayerSkin(playerid, 148); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 10) { PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 253; SetPlayerSkin(playerid, 253); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 11) { PlayerInfo[playerid][pTeam] = 25; gTeam[playerid] = 2; ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 12) { PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 12; ChosenSkin[playerid] = 126; SetPlayerSkin(playerid, 126); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 13) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 12; ChosenSkin[playerid] = 203; SetPlayerSkin(playerid, 203); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 14) { PlayerInfo[playerid][pTeam] = 15; gTeam[playerid] = 12; ChosenSkin[playerid] = 107; SetPlayerSkin(playerid, 107); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 15) { PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 17; ChosenSkin[playerid] = 30; SetPlayerSkin(playerid, 30); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 16) { PlayerInfo[playerid][pTeam] = 17; gTeam[playerid] = 2; ChosenSkin[playerid] = 59; SetPlayerSkin(playerid, 59); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 17) { PlayerInfo[playerid][pTeam] = 18; gTeam[playerid] = 12; ChosenSkin[playerid] = 103; SetPlayerSkin(playerid, 103); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 18) { PlayerInfo[playerid][pTeam] = 19; gTeam[playerid] = 12; ChosenSkin[playerid] = 109; SetPlayerSkin(playerid, 109); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 19) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 12; ChosenSkin[playerid] = 40; SetPlayerSkin(playerid, 40); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 20) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 12; ChosenSkin[playerid] = 47; SetPlayerSkin(playerid, 47); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 21) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 12; ChosenSkin[playerid] = 34; SetPlayerSkin(playerid, 34); }
                        else if(PlayerInfo[InviteOffer[playerid]][pLider] == 22) { PlayerInfo[playerid][pTeam] = 20; gTeam[playerid] = 12; ChosenSkin[playerid] = 254; SetPlayerSkin(playerid, 248); }
                        PlayerInfo[playerid][pMembro] = InviteJob[playerid];
                        PlayerInfo[playerid][pCargo] = 1;
                        SelectCharID[playerid] = PlayerInfo[playerid][pMembro];
                        format(gstring, 128, "* %s aceitou seu convite para entrar na sua organizaзгo.", PlayerName(playerid));
                        SendClientMessage(InviteOffer[playerid], COLOR_LIGHTBLUE, gstring);
                        SetPlayerSpawn(playerid); // forзar player to spawn
/*                      new rand = random(sizeof(gInviteSpawns));
                        SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                        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;
                        SelectCharID[playerid] = PlayerInfo[playerid][pMembro];
                        SelectCharPlace[playerid] = 1;
                        PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
                        SetPlayerSkin(playerid, ChosenSkin[playerid]);
                        SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'Proximo' para trocar a skin.");
                        SendClientMessage(playerid, COLOR_LIGHTRED, "* Quando Vocк achar a Skin preferida, Digite 'Confirma'.");   */
//funзгo de escolha de skin
                        format(gstring, sizeof(gstring), "* Vocк aceitou o convite de emprego de %s para entrar para: %s, parabйns.", PlayerName(InviteOffer[playerid]), NomeORG(InviteOffer[playerid]));
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
                        ConviteInfoOrg(PlayerName(playerid), InviteJob[playerid], 1);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "    O jogador que lhe convidou nгo estб conectado.");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "    Vocк nгo foi convidado para nenhuma organizaзгo.");
                    return 1;
                }
            }
Reply
#2

pawn Код:
[if(PlayerInfo[InviteOffer[playerid]][pLider] == 1) { PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 282; SetPlayerSkin(playerid, 282); }//Aqui Muda Sua Skin SetPlayerSkin
Ali em SetPlayerSkin vocк poe qual ele que para quando ele aceitar o convite da ORG/GANG.
Reply
#3

nгo й mudar skin. ao aceitar o convite de org, entrar logo com skin de cargo 1 automatico. pq estar indo skin civil. nao estar selecionando a skin da org.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)