You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > General > General Chat

Reply
 
Thread Tools Display Modes
  #1  
Unread 20th April, 2010, 12:53 PM
thiago.r2's Avatar
thiago.r2 thiago.r2 is offline
Banned
 
Join Date: Apr 2010
Posts: 60
Smile Comandos para administradores logado UT99

Anyone know commands to speak logged in as admin like this:
say #teste2010 say this command generates a text in white
how do I generate a text in black, orange, purple and others on the screen of all players?
if you have other commands for administrators logged that is different can also post some summon different too.
grateful to all!

Last edited by thiago.r2 : 20th April, 2010 at 12:56 PM.
Reply With Quote
  #2  
Unread 20th April, 2010, 02:04 PM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

Right....Can we try a non google translated paragraph now?
__________________




Reply With Quote
  #3  
Unread 20th April, 2010, 08:23 PM
thiago.r2's Avatar
thiago.r2 thiago.r2 is offline
Banned
 
Join Date: Apr 2010
Posts: 60
Default

Quote:
Originally Posted by SoNY_scarface View Post
Right....Can we try a non google translated paragraph now?
HELP-ME MAN i speeak portugues i am from brazil
Reply With Quote
  #4  
Unread 20th April, 2010, 08:55 PM
Sp0ngeb0b's Avatar
Sp0ngeb0b Sp0ngeb0b is offline
Godlike
 
Join Date: Sep 2008
Location: Germany
Posts: 488
Default

I think you mean a feature in ServerAdds:


http://www.unrealadmin.org/forums/sh...ver+adds+color
Reply With Quote
  #5  
Unread 20th April, 2010, 09:50 PM
thiago.r2's Avatar
thiago.r2 thiago.r2 is offline
Banned
 
Join Date: Apr 2010
Posts: 60
Default

Quote:
Originally Posted by Sp0ngeb0b View Post
I think you mean a feature in ServerAdds:


http://www.unrealadmin.org/forums/sh...ver+adds+color
Then there is no way to command?
not logged in as admin?
Reply With Quote
  #6  
Unread 20th April, 2010, 10:43 PM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

I don't understand what you are asking? Do you want to send a different coloured message as admin message?
__________________




Reply With Quote
  #7  
Unread 21st April, 2010, 12:48 AM
CPanoplyd CPanoplyd is offline
Holy Shit!!
 
Join Date: Feb 2005
Posts: 742
Default

I think I understand. The intent is to send a different colored message at different times during one game. So, sending "hello" as white, then "goodbye" as black, and then "LOL" as green, etc.

There are commands to change the text messages to be different colors but they only work one at a time. As far as I know there isn't a mutator that allows for the changing of Admin broadcasts on the fly.

I wrote this a few days ago.....
Code:
/*==============================================================================
AdminSay.
********************************************************************************
Used to allow up to 50 Non-Admin Players to broadcast 'Admin Text' without
using a login.  Just place their names into the INI file to allow them to use
the 'mutate asay ' command.

Written by CPanoplyd
Freely Distributable
Created December 2005
==============================================================================*/
class AdminSay extends Mutator config(ASayCONFIG);

var config string ClanName[50];
var config color cAColor;
var config bool bEnabled;

// Send a message to all players.
exec function ASay( string Msg )
{
	local Pawn p;
	local int i;
	local string Player;

	Player = p.PlayerReplicationInfo.PlayerName;
	Log("Player name is:"@Player);

	Msg = right(Msg);
	//Checks for Valid Name in the Config file
	for ( i = 0; ( ( i < 50 ) && ( Len( ClanName[i] ) > 0 ) ); i++ )
	{
		if (( Caps(ClanName[i] ) ) == (Caps(Player ) ) )
		{
			if (p != None)
			{
				PlayerPawn(p).ClearProgressMessages();
				PlayerPawn(p).SetProgressTime(6);
				PlayerPawn(p).SetProgressColor(cAColor,0);
				PlayerPawn(p).SetProgressMessage(Msg,0);
			}
		}
	}
	return;
}


function Mutate(string MutateString, PlayerPawn Sender)
{

	local string sMessage, Player;
	local Pawn p;
	local int i;
	local bool bAdmin;

    	Player = Sender.PlayerReplicationInfo.PlayerName;
    	bAdmin = Sender.PlayerReplicationInfo.bAdmin;

	if ( ( Left(Caps(MutateString),7) == "ENABLED" ) )
	{
		if ( bAdmin )
		{
			sMessage = Mid(MutateString,7);

			if ( Left( MutateString, 2 ) == " ?" )
			{
				if ( bEnabled )
					Sender.ClientMessage("AdminSay is Enabled!");
				else
					Sender.ClientMessage("AdminSay is Disabled!");
			}
			else
			{
				bEnabled = !bEnabled;
				SaveConfig();
			}
		}
		else
		{
			BroadcastMessage("This is restricted to Server Admins." );
		}
	}

	if ( Left(Caps(MutateString), 5) == "ASAY " )
	{
		if (bEnabled)
		{
			//Checks for Valid Name in the Config file
			for ( i = 0; ( ( i < 50 ) && ( Len( ClanName[i] ) > 0 ) ); i++ )
			{
				if (( Caps(ClanName[i] ) ) == (Caps(Player ) ) )
				{
					sMessage = Mid(MutateString, 5);
					if ( Len(sMessage)>0 )
					{
						for(p=Level.PawnList; p!=None; p=p.nextPawn)
						{
							if ( p.IsA('PlayerPawn') )
							{
								ShowMsg(sMessage, p);
							}
						}
					}
				}
			}
		}
		else
			BroadcastMessage("Sorry AdminSay is Disabled." );
	}

	if ( Left(Caps(MutateString),5) == "AADD " )
	{
		if ( bAdmin )
		{
			sMessage = Mid(MutateString,5);
			for ( i = 0; ( ( i < 50 ) && ( Len( ClanName[i] ) > 0 ) ); i++ );
			if ( i < 50 )
			{
				Sender.ClientMessage("Adding Admin: "@sMessage);
				ClanName[i] = sMessage;
				SaveConfig();
			}
			MutateString = "ALIST";
		}
		else
			Sender.ClientMessage("This is restricted to Server Admins.");
	}

	if ( ( Left(Caps(MutateString),8) == "AREMOVE " ) )
	{
		if ( bAdmin )
		{
			sMessage = Mid(MutateString,8);
			for ( i = 0; ( ( i < 50 ) && ( Len( ClanName[i] ) > 0 ) && ( ClanName[i] != sMessage ) ); i++ );
			if ( Caps(ClanName[i]) == Caps(sMessage) )
			{
				Sender.ClientMessage("Removing Admin: "@sMessage);
				for ( i = i; ( ( i < 50 ) && (Len(ClanName[ i + 1 ] ) > 0 ) ); i++ )
				{
					ClanName[i] = ClanName[i + 1];
				}
				ClanName[i] = "";
				SaveConfig();
			}
			MutateString = "ALIST";
		}
		else
			Sender.ClientMessage("This is restricted to Server Admins.");
	}

	if ( Left(Caps(MutateString),5) == "ALIST" )
	{
		if ( bAdmin )
		{
			Sender.ClientMessage("Current Admins:");
			for ( i = 0; ( ( i < 50 ) && (Len(ClanName[i] ) > 0 ) ); i++ )
			{
				Sender.ClientMessage("No."$i$": "$ClanName[i]);
			}
		}
		else
			Sender.ClientMessage("This is restricted to Server Admins.");
	}

	if ( Left(Caps(MutateString),5) == "AHELP" )
	{
		Sender.ClientMessage("AdminSay Help");
		Sender.ClientMessage("Commands : What they do.");
		Sender.ClientMessage("ASAY <message> : Broadcasts the message across the screen.");
		Sender.ClientMessage("::::::::Admin Commands::::::::");
		Sender.ClientMessage("ENABLED <' ?'> : Enables/Disables the AdminSay. ' ?' Displays ON/OFF.");
		Sender.ClientMessage("AADD <name> : Adds a user to be able to use the mutator.");
		Sender.ClientMessage("AREMOVE <name> : Removes the User from the list.");
		Sender.ClientMessage("ALIST : Lists all current names in the list.");
		Sender.ClientMessage("AHELP : Displays a list of all commands available.");
	}

} //End of MutateString function

function ShowMsg(string sMsg, Pawn p)
{

	if (p != None)
	{
		PlayerPawn(p).ClearProgressMessages();
		PlayerPawn(p).SetProgressTime(6);
		PlayerPawn(p).SetProgressColor(cAColor,0);
		PlayerPawn(p).SetProgressMessage(sMsg,0);
	}
}

defaultproperties
{
	cAColor=(R=0,G=0,B=245,A=0)
	bEnabled=True
}
Someone could be able to modify that to include a few color alias structs to add colors and modify the say commands to pick the colors.
__________________
CPan
Reply With Quote
  #8  
Unread 21st April, 2010, 06:09 AM
Nando Nando is offline
Rampage
 
Join Date: Jul 2007
Location: Brasil
Posts: 81
Default

He want send random colors in the admin say... f.e adminsay #RGB255.222.222"hello", something like this.. ^^


Eu acho que nao tem como mandar varias cores pro comando, vc deve mudar para uma so na .ini....
Reply With Quote
  #9  
Unread 21st April, 2010, 10:46 PM
CPanoplyd CPanoplyd is offline
Holy Shit!!
 
Join Date: Feb 2005
Posts: 742
Default

code wise would that make sense to have the message be:
command colorcode:message
So for red Hello
!ColorSay R=255:Hello
then have the code parse the STRING from the say and split it to a color variable (R=255) and a message variable (Hello), then assign them in the progress message accordingly?
__________________
CPan
Reply With Quote
  #10  
Unread 22nd April, 2010, 12:45 PM
thiago.r2's Avatar
thiago.r2 thiago.r2 is offline
Banned
 
Join Date: Apr 2010
Posts: 60
Default

Quote:
Originally Posted by CPanoplyd View Post
code wise would that make sense to have the message be:
command colorcode:message
So for red Hello
!ColorSay R=255:Hello
then have the code parse the STRING from the say and split it to a color variable (R=255) and a message variable (Hello), then assign them in the progress message accordingly?
Yessss man,

That's what I wanted this command does not exist or mutator getting the ServerAdds??
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:35 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.