Jump to content
  • 0

Problema SetupPlayerForClassSelection


Scott_Williams

Question

Sal, am pus in gm alte coord la setupplayerforclassselection, si acm cand intru nu se vede nimic. Ma da in cer se vede albastru ca si cum ai fi intr-un interior cand te-ai teleportat.Am pus coordonatele dintrun interior. Daca setez interiorul respectiv , tot nu merge. Ce ma sfatuiti sa fac?

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;

}

}

}

//where the player will spawn

#define player_x -248.9410

#define player_y 642.7512

#define player_z 1057.5938

#define player_angle 210.3500

#define camera_x -248.9410

#define camera_y 642.7512

#define camera_z 1057.5938

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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);
            SetPlayerInterior(playerid, 0);
            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);
            SetPlayerInterior(playerid, 0);
            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);
            SetPlayerInterior(playerid, 0);
            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;
        }
    }
    return 1;
}

Vezi daca merge.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

=-" post="50877" timestamp="1295542181"]

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);
            SetPlayerInterior(playerid, 0);
            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);
            SetPlayerInterior(playerid, 0);
            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);
            SetPlayerInterior(playerid, 0);
            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;
        }
    }
    return 1;
}

Vezi daca merge.

Nu merge.Dar ms ca ai incercat:D.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.