23.04.2014, 02:33
Comando corrigido + implemento:
E no seu comando GOTO vocк adiciona a seguinte condiзгo:
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)