[Ajuda] [AJUDA] gotoof e gotoon bugado!
#2

Comando corrigido + implemento:

pawn Код:
new bool:bloqueado[MAX_PLAYERS]; // Topo do script

if(strcmp(cmd, "/gotooff", true) == 0)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        bloqueado [ i ] = true ;
        SendClientMessage ( playerid, BRANCO, "Goto bloqueado{FFFFFF}" ) ;
    }
    return 1;
}

if(strcmp(cmd, "/gotoon", true) == 0)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        bloqueado [ i ] = false ;
        SendClientMessage ( playerid, BRANCO, "Goto desbloqueado{FFFFFF}!" ) ;
    }
    return 1;
}

E no seu comando GOTO vocк adiciona a seguinte condiзгo:

pawn Код:
if(bloqueado [ PLAYERID_ALVO ] == true) return 0; // PLAYERID_ALVO = ID do jogador digitado (EXEMPLO)
Reply


Messages In This Thread
[AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:28
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:33
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:45
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:47
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:50
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:55
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:59

Forum Jump:


Users browsing this thread: 1 Guest(s)