[Ajuda] Botao de spawn
#9

Base
PHP код:
enum e_PLAYER_INFO
{
    
bool:Logado,
}
new 
    
Player[MAX_PLAYERS][e_PLAYER_INFO];
public 
OnPlayerRequestClass(playeridclassid)
{
    if(!
Player[playerid][Logado])
    {
        
TogglePlayerSpectating(playeridtrue); // esconde o botгo de spawn
        
return true;
    }
    return 
true;
}
public 
OnPlayerSpawn(playerid)
{
    if(!
Player[playerid][Logado])
    {
        
Player[playerid][Logado] = true;
    }
    return 
true;
}
public 
OnPlayerRequestSpawn(playerid)
{
    return 
Player[playerid][Logado];
}
public 
OnPlayerLogin(playerid// Onde serб executado a query de login para carregar as informaзхes/dados do banco de dados.
{
    if(
Player[playerid][Logado])
        return 
false;
    
// Preencha a funзгo abaixo.
    
SetSpawnInfo(playerid0skinxyzrotationweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo); // seta a posiзгo do spawn e +
    
SendClientMessage(playerid, -1"autenticado com sucesso.");
    
TogglePlayerSpectating(playeridfalse); // "spawna" o jogador
    
return true;

Reply


Messages In This Thread
Botao de spawn - by Marllun - 14.11.2017, 22:47
Re: Botao de spawn - by Coringa_Vilao - 14.11.2017, 22:55
Re: Botao de spawn - by MediaCL - 14.11.2017, 23:00
Re: Botao de spawn - by Marllun - 14.11.2017, 23:07
Re: Botao de spawn - by Andre02 - 14.11.2017, 23:34
Re: Botao de spawn - by Marllun - 14.11.2017, 23:37
Re: Botao de spawn - by Coringa_Vilao - 14.11.2017, 23:43
Re: Botao de spawn - by Marllun - 14.11.2017, 23:54
Re: Botao de spawn - by SammyJ - 15.11.2017, 01:09
Re: Botao de spawn - by Coringa_Vilao - 15.11.2017, 03:02

Forum Jump:


Users browsing this thread: 1 Guest(s)