Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » brenbot plugin needed
Re: brenbot plugin needed [message #418928 is a reply to message #418863] Sun, 31 January 2010 03:00 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
Yea brenbot has the option to force auth people. so people have to use the !auth in irc or a couple of other ways. You would just have to make a simple brenbot plugin to use the console commands. example here is the main part of a spectate plugin that uses a console command.

sub spectate
{
	my %args = %{@_[ ARG0 ]};

	if ( !$args{arg1} )
	{
		my $syntaxvalue = $args{settings}->{syntax}->{value};
		$message = "Usage: $syntaxvalue";
		return;
	}

	my ( $result, %player ) = plugin::getPlayerData( $args{'arg1'} );
	if ( $result == 1 )
	{
		# Player found, spectate them
		plugin::RenRemCMD("r_spec $player{id}"); #console command
		plugin::ircmsg ("10[Spectate] Player $player{name} is now in spectate mode.",'A');
	}
	else
	{
		if ( $args{nicktype} == 1 ) { plugin::ircmsg ( "Player $args{arg1} not found ingame", $args{'ircChannelCode'} ); }
		else { plugin::pagePlayer ( $args{'nick'}, "Player $args{arg1} not found ingame" ); }
	}
}


if you where going to use your console command plugin that uses the txt file it would work differently. You have to make the plugin make and print into a file when a mod uses a comamnd.

open (ConsoleCommand, '>>C:\Westwood\RenegadeFDS\Server\ConsoleCommand.txt');
print ConsoleCommand "command flymode ObjectID\n";
close (ConsoleCommand);


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Sun, 31 January 2010 03:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: muzzleflash
Next Topic: Nod Arty sfx skew
Goto Forum:
  


Current Time: Fri Feb 14 09:30:53 MST 2025

Total time taken to generate the page: 0.01031 seconds