[Ajuda] Botao de spawn
#8

Eu jб fiz, o sistema й mysql.

PHP код:
static Logadoo[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
        
Logadoo[playerid] = 0;
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    
//Local que vai verificar se o que vocк digitou й a senha, se sim, vai acontecer o que estб aн em baixo.
    
{
            
Logadoo[playerid] = 1;
    }        
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    if(
Logadoo[playerid] == 0)
    {
    
SendClientMessage(playerid, -1"Registre-se/logue para spawnar!");
    return 
0;
    }
    if(
Logadoo[playerid] == 1)
    {
    return 
1;
    }
    return 
1;

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: 3 Guest(s)