[Pedido] Como retirar o botгo de "SPAWN".
#1

Como eu retiro o botгo de spawn que na hora que o player conecta e tem esses botoes assim |<< |--| >>|--|SPAWN|
sem que afete a cвmera que ao conectar fica girando em volta do player.



Reply
#2

Vo te dб um tiro.


https://www.******.com.br/webhp?sour...C3%A3o%20Spawn


--

https://sampforum.blast.hk/showthread.php?tid=285859
Reply
#3

Example.

pawn Код:
new g_Logged[MAX_PLAYERS];


public OnPlayerConnect(playerid)
{
    SetTimerEx("SpawnPlayers", 250, 0, "d", playerid);
    return 1;
}

forward SpawnPlayers(playerid);
public SpawnPlayers(playerid)
{
    g_Logged[playerid] = 255;
    SetSpawnInfo(playerid, 0, 298, 1815.2614,-1369.6233,15.0781-4.0, 0.0, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
}

public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid))
    {
        if(g_Logged[playerid] == 255)
        {
            g_Logged[playerid] = 0;
            LoginShow(playerid);
        }
        else
        {
            if(//... no logged.
            {
                Kick(playerid);
                return 1;
            }
        }
        // MORE
    }
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(!IsPlayerNPC(playerid))
    {
        if(// Logged variable in true
        {
            SpawnPlayer(playerid);
        }
        else
        {
            if(g_Logged[playerid] == 255)
            {
                g_Logged[playerid] = 0;
                LoginShow(playerid);
            }
        }
    }
    else
    {
        SpawnPlayer(playerid);
    }
    return 1;
}

stock LoginShow(playerid)
{
    TogglePlayerSpectating(playerid, 1);
    // Camlook.. etc.
    // Dialog login
    return 1;
}
Reply
#4

Porque??
Reply
#5

Quote:
Originally Posted by Marlon307
Посмотреть сообщение
Porque??
Era sу usar o search...
http://forum.sa-mp.com/showpost.php?...1&postcount=16
Reply
#6

https://sampwiki.blast.hk/wiki/TogglePlayerSpectating

Deixe 'true' para que 'remova' a barra, quando o player for spawnar ou jб estiver logado 'false', caso contrбrio, ele ficara bugado!

https://sampforum.blast.hk/showthread.php?tid=355050
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)