Bug F4
#1

When I was choosing my skin does not look Selected skin F4

SCREEN: http://s21.postimg.org/ayl2a2493/sa_mp_035.png
Reply
#2

Because your skin Position is set where the camera position is looking at.
Reply
#3

How do I find and how do?
Reply
#4

Show me codes under
Код:
OnPlayerRequestClass
and one code on
Код:
OnGamemodeInit
Example
Код:
AddPlayerClass(.........);
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    //PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pModel] = Peds[classid][0];

    if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_1BLUE, "* GTA.GADICT.NET ");
        SendClientMessage(playerid, COLOR_RED, "* Scrie-ti parola in casuta de mai jos.");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        SendClientMessage(playerid, COLOR_YELLOW2, " ");
        if (gPlayerAccount[playerid] != 0)
        {
            new loginstring[128];
            new loginname[64];
            GetPlayerName(playerid,loginname,sizeof(loginname));
            format(loginstring,sizeof(loginstring),"{BECBFC}Bine ai Revenit {95A3FF}%s{BECBFC}!\n\nIntrodu-ti parola in casuta de mai jos pentru a te loga. \n",loginname);
            ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
        }
        else
        {
            gPlayerAccount[playerid] = 0;
            new regstring[128];
            new regname[64];
            format(regstring,sizeof(regstring),"{BECBFC}Bine ai venit, {95A3FF}%s\n{BECBFC}Nu ai un cont inregistrat.\nIntrodu-ti parola in casuta de mai jos pentru a te loga. \n\n",regname);
            ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
        }
        PlayerInfo[playerid][pModel] = Peds[classid][0];
        SetPlayerTeamFromClass(playerid,classid);
    }
        if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3
        || PlayerInfo[playerid][pMember] == 4 ||PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6
        || PlayerInfo[playerid][pMember] == 7 ||PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 8 ||PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 9 ||PlayerInfo[playerid][pLeader] == 9
        || PlayerInfo[playerid][pMember] == 10 ||PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12
        || PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 14||PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 15||PlayerInfo[playerid][pLeader] == 15)
    {
    return 1;
    }
    new string[128];
    //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pModel] = Peds[classid][0];
    if  (classid == 0)
    {
        format(string, sizeof(string), "~y~> ~r~Gta.Gadict.Net ~y~<");
        GameTextForPlayer(playerid,string,3500,6);
    }
    InterpolateCameraPos(playerid, 1231.9775,-1716.9208,13.3828,1184.6697,-1752.9556,15.7327, 50000, CAMERA_MOVE);
    return 1;
}



public SetupPlayerForClassSelection(playerid)
{
    switch (gTeam[playerid])
    {
        case TEAM_BLUE:
        {
            SetPlayerPos(playerid, player_x,player_y,player_z);
            SetPlayerFacingAngle(playerid, player_angle);
            SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
            SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
            ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing. It's most fitting to the music
           // PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238); //music, duh
            if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid);
            PlayerInfo[playerid][SpawnDance] = false;

        }
        case TEAM_ADMIN:
        {
            SetPlayerPos(playerid, player_x,player_y,player_z);
            SetPlayerFacingAngle(playerid, player_angle);
            SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
            SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
            ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing. It's most fitting to the music
           // PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238); //music, duh
            if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid);
            PlayerInfo[playerid][SpawnDance] = false;
        }
        default:
        {
            SetPlayerPos(playerid, player_x,player_y,player_z);
            SetPlayerFacingAngle(playerid, player_angle);
            SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
            SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
            ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing. It's most fitting to the music
            //PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238); //music, duh
            if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid);
            PlayerInfo[playerid][SpawnDance] = false;
        }
    }
}

//---------------------------------------------------------

public SetPlayerTeamFromClass(playerid,classid)
{
    if (classid >= 1 && classid <= 15)
    {
        gTeam[playerid] = 15; //admin
        PlayerInfo[playerid][pTeam] = 15;
    }
    else
    {
        gTeam[playerid] = 3;
        PlayerInfo[playerid][pTeam] = 3;
    }
}

pawn Код:
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
Reply
#6

Your Position and your Camera Position (Float: x ,Float:y,Float:z) are wrong.
Reply
#7

how fix?
Reply
#8

Someone help me? who helps me gets reputation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)