[Ajuda] 3DTextLabel
#1

Bem estou com o seguinte problema, criei uma callback para setar os text3d nos players que tem suas profissхes.. mais
quando outro player escolhe outra profissгo o text3d some do meu boneco, ou vice-versa.
Alguem poderia me ajudar?
pawn Код:
CB:TLP(playerid) {
    new prof[60], Text3D:LabelPlayer[MAX_PLAYERS];
    format(prof, sizeof(prof), PASTA_CONTAS, GetName(playerid));
    if (DOF2_GetInt(prof, "Profissao") == 0) {
        Create3DTextLabel("Desempregado", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 1) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Taxista", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 2) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Assaltante", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 3) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Seguranзa", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 4) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Carteiro", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 5) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Caminhoneiro", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 6) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Mйdico", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 7) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Mecвnico", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 8) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Advogado", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 9) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Aposentado", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 10) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Policial Militar", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 11) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Policial Civil", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 12) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Membro da Interpol", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 13) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Policial Federal", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 14) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Membro da F.B.I", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 15) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Membro da S.W.A.T", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 16) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Policial Rodoviбrio", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 17) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Sequestrador", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 18) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Motorista Particular", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 19) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Mendingo", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (DOF2_GetInt(prof, "Profissao") == 20) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("Jornalista", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (IsAdmin[playerid] == 1) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("- Adminstrador -", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    else if (IsVip[playerid] == 1) {
        Delete3DTextLabel(LabelPlayer[playerid]);
        Create3DTextLabel("- Vip -", -1, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(LabelPlayer[playerid], playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}

http://sphotos-b.ak.fbcdn.net/hphoto...41281821_o.jpg
Reply


Messages In This Thread
3DTextLabel - by dPlaYer_ - 13.12.2012, 14:09
Re: 3DTextLabel - by TugaBR - 13.12.2012, 14:14
Re: 3DTextLabel - by dPlaYer_ - 13.12.2012, 14:17
Re: 3DTextLabel - by Don_Speed - 13.12.2012, 14:18
Re: 3DTextLabel - by dPlaYer_ - 13.12.2012, 14:28
Re: 3DTextLabel - by Don_Speed - 13.12.2012, 14:33
Re: 3DTextLabel - by dPlaYer_ - 13.12.2012, 14:40
Re: 3DTextLabel - by Don_Speed - 13.12.2012, 14:53
Re: 3DTextLabel - by dPlaYer_ - 13.12.2012, 15:48
Re: 3DTextLabel - by Maklister - 13.12.2012, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)