Author Topic: Reconnect command help  (Read 2202 times)

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Reconnect command help
« on: October 01, 2012, 09:27:11 pm »
 :o :o how can i delete " reconnect " command ??????



RootKiller

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Reconnect command help
« Reply #1 on: October 01, 2012, 11:29:49 pm »
You can't, this command is built in client :).

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Reconnect command help
« Reply #2 on: November 21, 2012, 08: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 ) ." );
}



Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Reconnect command help
« Reply #3 on: November 21, 2012, 08:37:23 pm »
xD dose not work .   



Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Reconnect command help
« Reply #4 on: November 22, 2012, 01:38:35 pm »
because The Objects Delete When i type /reconnect .  :o



Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Reconnect command help
« Reply #5 on: November 23, 2012, 09: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;
}

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Reconnect command help
« Reply #6 on: January 17, 2013, 07:04:01 pm »
No way to delete the command ?  >:( >:( >:( >:( >:(



SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Reconnect command help
« Reply #7 on: January 19, 2013, 12:17:08 am »
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. :)

 

© Liberty Unleashed Team.