Raised This Month: $51 Target: $400
 12% 

Auto chat messages (partially colored)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HisHighnessSajjad
Junior Member
Join Date: Oct 2010
Old 10-30-2010 , 05:48   Auto chat messages (partially colored)
Reply With Quote #1

I want the name of the plugin which shows the specified chat messages automatically after a specified period of time.
For example:
"Contact the server admin via BlackBerry Messenger (PIN: 2010****)"

This messages should be displayed as a chat message after every 120 seconds. The word 'BlackBerry Messenger' must be in green.. all the other words must be yellow or of any other color.

Can I have the name of this plugin?
HisHighnessSajjad is offline
Rampage.Scent
Junior Member
Join Date: Oct 2010
Location: Zombie Apocalypse
Old 10-30-2010 , 06:48   Re: Auto chat messages (partially colored)
Reply With Quote #2

Quote:
Originally Posted by HisHighnessSajjad View Post
I want the name of the plugin which shows the specified chat messages automatically after a specified period of time.
For example:
"Contact the server admin via BlackBerry Messenger (PIN: 2010****)"

This messages should be displayed as a chat message after every 120 seconds. The word 'BlackBerry Messenger' must be in green.. all the other words must be yellow or of any other color.

Can I have the name of this plugin?
Hi there,

Sorry, I don't know the name of the plugin you were talking about. So I make it for you.

PHP Code:
#include < amxmodx >

#define DELAY 120.0 // Note: Edit here to set the delay.

new g_iMsgSayText

public plugin_init( )
{
     
register_plugin"Display Message""1.0""Rampage.Scent" )

     
set_taskDELAY"Display_Message"0__"b" )

     
g_iMsgSayText get_user_msgid"SayText" )
}

public 
Display_Messageid )
{
     
client_printcolorid"/yContact the server admin via /gBlackBerry Messenger/y (PIN: 2010****)" )
}

stock client_printcolor( const id, const input[ ], any:... )
{
     new 
iCount 1iPlayers32 ]
    
     static 
szMsg191 ]
     
vformatszMsgcharsmaxszMsg ), input)
    
     
replace_allszMsg190"/g""^4" 
     
replace_allszMsg190"/y""^1" 
     
replace_allszMsg190"/ctr""^3" 
     
replace_allszMsg190"/w""^0" )
    
     if ( 
id iPlayers] = id
     
else get_playersiPlayersiCount"ch" )
    
     for ( new 
0iCounti++ )
     {
          if ( 
is_user_connectediPlayers] ) )
          {
               
message_beginMSG_ONE_UNRELIABLEg_iMsgSayText_iPlayers] )
               
write_byteiPlayers[i] )
               
write_stringszMsg )
               
message_end( )
          }
     }

__________________

Last edited by Rampage.Scent; 10-30-2010 at 07:42.
Rampage.Scent is offline
am_amx
Senior Member
Join Date: Jul 2010
Location: here
Old 10-30-2010 , 07:03   Re: Auto chat messages (partially colored)
Reply With Quote #3

try this plugin very use full,automatic messages with color
http://forums.alliedmods.net/showthread.php?p=236886
am_amx is offline
HisHighnessSajjad
Junior Member
Join Date: Oct 2010
Old 10-31-2010 , 17:24   Re: Auto chat messages (partially colored)
Reply With Quote #4

Hey Rampage, I will try out your plugin soon (perhaps tomorrow)
And yeah, the other reply (with plugin link) looks almost perfect.. would try it also tomorrow..

P.S. can't try those now because the time is 1:20AM and toomrrow is my Physics test :@
HisHighnessSajjad is offline
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode