Raised This Month: $59 Target: $400
 14% 

Advanced Scroll Message [more cvars]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Exolent[jNr] (178)
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-08-2009 , 07:05   Advanced Scroll Message [more cvars]
Reply With Quote #1

Advanced Scroll Message
[more cvars]

Description:

- This is scrollmessage default from amxmodx but, i added some cvars to change color, and mode.
- I updated the original version.

Copyright AMXMODX DEV TEAM:

PHP Code:
/* AMX Mod X script.
*
*   Advanced ScrollMessage With More Cvars
*   Copyright (C) 2009 tuty
*   Original author AMXX Dev Team
*
*   This program is free software; you can redistribute it and/or
*   modify it under the terms of the GNU General Public License
*   as published by the Free Software Foundation; either version 2
*   of the License, or (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*   along with this program; if not, write to the Free Software
*   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*
*   In addition, as a special exception, the author gives permission to
*   link the code of this program with the Half-Life Game Engine ("HL
*   Engine") and Modified Game Libraries ("MODs") developed by Valve,
*   L.L.C ("Valve"). You must obey the GNU General Public License in all
*   respects for all of the code used other than the HL Engine and MODs
*   from Valve. If you modify this file, you may extend this exception
*   to your version of the file, but you are not obligated to do so. If
*   you do not wish to do so, delete this exception statement from your
*   version.
*
*/ 
Cvars:

- amx_scrollmsg <message here> / default from amxx.cfg
- amx_scrollmessage_mode:

1 = Default color
2 = Random Colors
3 = Color controled by cvar

- amx_scrollmessage_color - "0 0 255" (RGB FORMAT) / !use spaces!


Attached Files
File Type: sma Get Plugin or Get Source (Advanced_Scroll_Message.sma - 2044 views - 5.6 KB)
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 08-23-2009 at 22:24.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-08-2009 , 07:13   Re: Advanced Scroll Message [more cvars]
Reply With Quote #2

Go tuty!!!!!

Cool Plugin
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2009 , 07:25   Re: Advanced Scroll Message [more cvars]
Reply With Quote #3

Not a major error, but
clamp( str_to_num( rgb[ 0 ] ) , 1, 255 );
should be
clamp( str_to_num( rgb[ 0 ] ) , 0, 255 );

IMO, change the color every 0.3sec is a bit too much, i suggest you to make 2 random colors mode, 1 when you set a random color every 0.3s as it is for now, the other one you pick up a random color, but for the whole time the message will scroll.
__________________
- tired and retired -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-08-2009 , 07:28   Re: Advanced Scroll Message [more cvars]
Reply With Quote #4

ok i will change that
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-08-2009 , 10:51   Re: Advanced Scroll Message [more cvars]
Reply With Quote #5

Good job tuty, I like this!

+Karma
BOYSplayCS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2009 , 11:06   Re: Advanced Scroll Message [more cvars]
Reply With Quote #6

Post in scripting help if you need help, PM is not a good place for that
__________________
- tired and retired -
ConnorMcLeod is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-08-2009 , 12:54   Re: Advanced Scroll Message [more cvars]
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Post in scripting help if you need help, PM is not a good place for that

.............
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Contrenature
Member
Join Date: Nov 2008
Location: Latvia, Liepaya, Riga
Old 03-08-2009 , 18:44   Re: Advanced Scroll Message [more cvars]
Reply With Quote #8

tuty, its nice, but, can you add please functions, who can select, how mutch can use scrollmessages... like const MAX_SCROLLMSGS and numbers of limit!

I know, there is already that plugin, but if you can, add this!
Contrenature is offline
Send a message via Skype™ to Contrenature
Reply


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

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 05:44.


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