[AJUDA] desativar goto
#1

queria ver oque esta porque no meu codigo de desativar o goto para ninguem ir ate vocк,quando o player que nao quer que ninguem va ate ele digita /gotooff e desativa so que quando o outro player que quer ir ate ele digita /gotoon ele consegue dar no player que digitou /gotooff! como eu arrumaria isso codigo abaixo!

if(strcmp(cmd, "/gotooff", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
xTravarComando [ i ] = true ;
SendClientMessage ( playerid, BRANCO, "Agora Ninguem Pode se Teleportar Ate Voce." ) ;
return 1;
}

if(strcmp(cmd, "/gotoon", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
xTravarComando [ i ] = false ;
SendClientMessage ( playerid, BRANCO, "Agora Todos Podem se Teleportar Ate Voce." ) ;
return 1;
}
Reply
#2

pawn Код:
if(strcmp(cmd, "/gotooff", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
xTravarComando [ i ] = false ;
SendClientMessage ( playerid, BRANCO, "Agora Ninguem Pode se Teleportar Ate Voce." ) ;
return 1;
}

if(strcmp(cmd, "/gotoon", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
xTravarComando [ i ] = true ;
SendClientMessage ( playerid, BRANCO, "Agora Todos Podem se Teleportar Ate Voce." ) ;
return 1;
}
tenta agr.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)