[Ajuda] Spawn Bugado
#1

coloquei para o player escolher o personagem dentro de um interior, mas o problema eh q na hr que eu clico em spawn
buga tudo, fica tudo azul e nao da para ver nada.... sera q alguem poderia me ajudar?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
    SetPlayerInterior(playerid, 10);
    SetPlayerFacingAngle(playerid, 270.1134);
    SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
    SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
    return 1;
}
Reply
#2

Poem na public OnPlayerSpawn

pawn Код:
SetPlayerInterior(playerid, 0);
Reply
#3

Quote:
Originally Posted by Lipe_Stronda
Посмотреть сообщение
Poem na public OnPlayerSpawn

pawn Код:
SetPlayerInterior(playerid, 0);
simples assim, valeu >.< rep +
Reply
#4

Verifique

E obrigatуrio ter essa linha
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 );
    return 1;
}
Tente assim
Код:
public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
Verifique se esta 1
Код:
public OnPlayerSpawn(playerid)
{
    return 1;
}
//Assim e para mais escolhas
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 0
    AddPlayerClass( 20, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 1
    return 1;
}

public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
        case 1:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by djgabrielway
Посмотреть сообщение
Verifique

E obrigatуrio ter essa linha
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 );
    return 1;
}
Tente assim
Код:
public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
Verifique se esta 1
Код:
public OnPlayerSpawn(playerid)
{
    return 1;
}
//Assim e para mais escolhas
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 0
    AddPlayerClass( 20, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 1
    return 1;
}

public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
        case 1:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
cara , ja arrumei , mas me tira uma duvida.........
para que adicionar o case 1:
sendo que ambos contem a mesma posiзao.. seria muito mais plausivel de deixar
pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
return 1;
}
Reply
#6

Bom manin

O meu e mais de 1 por que sгo 16 sendo que a cada 4 e de um time
Ex: GangRed, GangBlue etc

E achei que o seu poderia ser do tipo que o meu

Por isso eu coloquei mais de 1
Код:
            GameTextForPlayer( playerid, "~r~TEAM RED", 1000, 3 );
            SetPlayerPos(playerid, 1176.287,-1994.802,69.00781);
            SetPlayerFacingAngle(playerid,730);
            SetPlayerCameraPos(playerid, 1174.287,-1991.802,69.00781);
            SetPlayerCameraLookAt(playerid, 1176.287,-1994.802,69.00781);
            SetPlayerTeam( playerid, TEAM_RED );
            SetPlayerColor(playerid, 0xFF0000AA);
o meu eu sу mudo aqui

GameTextForPlayer( playerid, "~r~TEAM RED, 1000, 3 );
SetPlayerTeam( playerid, TEAM_RED ); eu uso mais por isso aqui
SetPlayerColor(playerid, 0xFF0000AA);

Por isso uso mais de 1

mais tou tentando fazer de um jeito que mude a Team por ex: /gangvermelha
Reply
#7

Quote:
Originally Posted by djgabrielway
Посмотреть сообщение
Verifique

E obrigatуrio ter essa linha
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 );
    return 1;
}
Tente assim
Код:
public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
Verifique se esta 1
Код:
public OnPlayerSpawn(playerid)
{
    return 1;
}
//Assim e para mais escolhas
Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 0
    AddPlayerClass( 20, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 1
    return 1;
}

public OnPlayerRequestClass( playerid, classid )
{
    switch(classid) // This is like a if/elseif statement.
    {
        case 0:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
        case 1:
        {
        SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687);
        SetPlayerInterior(playerid, 10);
        SetPlayerFacingAngle(playerid, 270.1134);
        SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687);
        SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687);
        }
    }
    return 1;
}
E obrigatуrio ter essa linha
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 );
    return 1;
}
tб meio desinformado amigo, nгo й obrigatуrio nгo, sу poe quem utiliza para algo a seleзгo de classes, no caso meu servidor й rpg e nгo utilizo a playerclass
Reply
#8

O seu Codigo nao precisa mais o do carinha que precisou de ajuda sim
por isso coloquei que e obrigatorio
Reply
#9

Quote:
Originally Posted by djgabrielway
Посмотреть сообщение
O seu Codigo nao precisa mais o do carinha que precisou de ajuda sim
por isso coloquei que e obrigatorio
ok devo ter compreendido errado entao
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)