Donations
|
If you wish to make a donation you can by clicking the image below.
|
|
|
|
20th April, 2010, 12:53 PM
|
|
Banned
|
|
Join Date: Apr 2010
Posts: 60
|
|
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.
|
20th April, 2010, 02:04 PM
|
Holy Shit!!
|
|
Join Date: Mar 2007
Posts: 1,726
|
|
Right....Can we try a non google translated paragraph now?
|
20th April, 2010, 08:23 PM
|
|
Banned
|
|
Join Date: Apr 2010
Posts: 60
|
|
Quote:
Originally Posted by SoNY_scarface
Right....Can we try a non google translated paragraph now?
|
HELP-ME MAN i speeak portugues i am from brazil
|
20th April, 2010, 08:55 PM
|
|
Godlike
|
|
Join Date: Sep 2008
Location: Germany
Posts: 488
|
|
|
20th April, 2010, 09:50 PM
|
|
Banned
|
|
Join Date: Apr 2010
Posts: 60
|
|
Quote:
Originally Posted by Sp0ngeb0b
|
Then there is no way to command?
not logged in as admin?
|
20th April, 2010, 10:43 PM
|
Holy Shit!!
|
|
Join Date: Mar 2007
Posts: 1,726
|
|
I don't understand what you are asking? Do you want to send a different coloured message as admin message?
|
21st April, 2010, 12:48 AM
|
Holy Shit!!
|
|
Join Date: Feb 2005
Posts: 742
|
|
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
|
21st April, 2010, 06:09 AM
|
Rampage
|
|
Join Date: Jul 2007
Location: Brasil
Posts: 81
|
|
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....
|
21st April, 2010, 10:46 PM
|
Holy Shit!!
|
|
Join Date: Feb 2005
Posts: 742
|
|
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
|
22nd April, 2010, 12:45 PM
|
|
Banned
|
|
Join Date: Apr 2010
Posts: 60
|
|
Quote:
Originally Posted by CPanoplyd
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??
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|