Liberty Unleashed
Scripting => Script Help => Topic started by: Mido_Pop on October 01, 2012, 08:27:11 pm
-
:o :o how can i delete " reconnect " command ??????
-
You can't, this command is built in client :).
-
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 ) ." );
}
-
xD dose not work .
-
because The Objects Delete When i type /reconnect . :o
-
Not tested, but try this:
(This is a clientside script, so load it as one)
function onClientCommand( cmd, text )
{
if ( cmd == "reconnect" )
{
Message("Reconnect is disabled. Please quit, and rejoin if you want to reconnect.");
return 0;
}
return 1;
}
-
No way to delete the command ? >:( >:( >:( >:( >:(
-
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. :)