Liberty Unleashed

Scripting => Script Help => Topic started by: Mido_Pop on October 01, 2012, 08:27:11 pm

Title: Reconnect command help
Post by: Mido_Pop on October 01, 2012, 08:27:11 pm
 :o :o how can i delete " reconnect " command ??????
Title: Re: Reconnect command help
Post by: RootKiller on October 01, 2012, 10:29:49 pm
You can't, this command is built in client :).
Title: Re: Reconnect command help
Post by: Mido_Pop on November 21, 2012, 07:18:06 pm
error why ?????

function onPlayerCommand( player, cmd, text )
{
     if ( cmd == "reconnect" )
     {
        NewTimer( "kick", 10000, 1, player );     
     }
     
     return 1;
}

function kick( player )
{
  KickPlayer( player );

  Message( "[#ff00ff]*Pops War* [#0000ff]( " + player.Name + " ) [#ff0000]was kicked ( /reconnect > command ) ." );
}
Title: Re: Reconnect command help
Post by: Mido_Pop on November 21, 2012, 07:37:23 pm
xD dose not work .   
Title: Re: Reconnect command help
Post by: Mido_Pop on November 22, 2012, 12:38:35 pm
because The Objects Delete When i type /reconnect .  :o
Title: Re: Reconnect command help
Post by: Thijn on November 23, 2012, 08:42:36 pm
Not tested, but try this:
(This is a clientside script, so load it as one)
Code: [Select]
function onClientCommand( cmd, text )
{
if ( cmd == "reconnect" )
{
Message("Reconnect is disabled. Please quit, and rejoin if you want to reconnect.");
return 0;
}
return 1;
}
Title: Re: Reconnect command help
Post by: Mido_Pop on January 17, 2013, 06:04:01 pm
No way to delete the command ?  >:( >:( >:( >:( >:(
Title: Re: Reconnect command help
Post by: SugarD on January 18, 2013, 11:17:08 pm
No way to delete the command ?  >:( >:( >:( >:( >:(
No. Why would you want to anyway? If you're worried about abuse, there are several ways you can prevent users from constantly rejoining to do malicious things. :)