Cerere de [scrollmsg] modificat [rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
fifty333
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 04 Aug 2008, 21:57
Detinator Steam: Nu
CS Status: Joc CS
Location: Zaragoza,Spania
Has thanked: 5 times
Been thanked: 2 times

19 Oct 2009, 16:53

Care poate sa-mi dea si mie pluginu scrollmsg.amxx da sa apara in diferite culori.
Explicatie: Cand apare mesaju jos,sa schimba in mai multe culori,in rest este tot la fel ca scrollmsg.amxx normal de la amxmodx.
l-am luat odata de pe un addons da nu mai stiu de unde. :-??
Last edited by fifty333 on 19 Oct 2009, 18:18, edited 2 times in total.
Image
Daca team ajutat apasa butonul Image
Image
Image
RoyalServer 2
PoSiTiOn Of PoWeR
Utilizator banat
Utilizator banat
Posts: 2467
Joined: 28 Oct 2007, 12:18
Detinator Steam: Nu
Reputatie: Fost super moderator (suspendare 2 luni)
Fost scripter eXtreamCS
Nick anterior : AlinHD
1.6 / 3
Has thanked: 4 times
Been thanked: 116 times

19 Oct 2009, 17:56

deschide scrollmsg.sma
si schimbi:

Code: Select all

set_hudmessage(200, 100, 0, g_xPos, 0.90, 0, SPEED, SPEED, 0.05, 0.05, 2)
cu:

Code: Select all

set_hudmessage(random(256), random(256), random(256), g_xPos, 0.90, 0, SPEED, SPEED, 0.05, 0.05, 2)
apoi compilezi, etc.
User avatar
fifty333
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 04 Aug 2008, 21:57
Detinator Steam: Nu
CS Status: Joc CS
Location: Zaragoza,Spania
Has thanked: 5 times
Been thanked: 2 times

19 Oct 2009, 18:17

Ms AlinHD,merge perfect :)
Image
Daca team ajutat apasa butonul Image
Image
Image
User avatar
VINTYLA #
Membru, skill +4
Membru, skill +4
Posts: 1548
Joined: 05 Apr 2009, 00:48
Detinator Steam: Da
CS Status: Do more !
Detinator server CS: CS.EXTREAM.RO
SteamID: VINTILA23
Location: Craiova !
Has thanked: 114 times
Been thanked: 87 times

19 Oct 2009, 19:17

Scuze ca ma bag...pui si tu scrollmsg.sma ? :D [il vreau si eu]
STIINTA NU MOARE !
User avatar
R1cko
Membru, skill +1
Membru, skill +1
Posts: 475
Joined: 10 Sep 2008, 22:36
Detinator Steam: Da
Detinator server CS: hns.aznet.ro
SteamID: r1cko_hd
Reputatie: Restrictie mesaje private !
Location: Iasi
Has thanked: 37 times
Been thanked: 20 times

19 Oct 2009, 20:13

Mersi mult :) si eu l`am pus
Image
User avatar
fifty333
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 04 Aug 2008, 21:57
Detinator Steam: Nu
CS Status: Joc CS
Location: Zaragoza,Spania
Has thanked: 5 times
Been thanked: 2 times

19 Oct 2009, 20:57

vintyla wrote:Scuze ca ma bag...pui si tu scrollmsg.sma ? :D [il vreau si eu]
scroolmsg.sma | Afiseaza codul
/* AMX Mod X
*   Scrolling Message Plugin
*
* by the AMX Mod X Development Team
*  originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
*  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.
*/

#include <amxmodx>
#include <amxmisc>

#define SPEED 0.3
#define SCROLLMSG_SIZE	512

new g_startPos
new g_endPos
new g_scrollMsg[SCROLLMSG_SIZE]
new g_displayMsg[SCROLLMSG_SIZE]
new Float:g_xPos
new g_Length
new g_Frequency

public plugin_init()
{
	register_plugin("Scrolling Message", AMXX_VERSION_STR, "AMXX Dev Team")
	register_dictionary("scrollmsg.txt")
	register_dictionary("common.txt")
	register_srvcmd("amx_scrollmsg", "setMessage")
}

public showMsg()
{
	new a = g_startPos, i = 0

	while (a < g_endPos)
		g_displayMsg[i++] = g_scrollMsg[a++]

	g_displayMsg = 0

	if (g_endPos < g_Length)
		g_endPos++

	if (g_xPos > 0.35)
		g_xPos -= 0.0063
	else
	{
		g_startPos++
		g_xPos = 0.35
	}

	set_hudmessage(random(256), random(256), random(256), g_xPos, 0.90, 0, SPEED, SPEED, 0.05, 0.05, 2)
	show_hudmessage(0, "%s", g_displayMsg)
}

public msgInit()
{
	g_endPos = 1
	g_startPos = 0
	g_xPos = 0.65
	
	new hostname[64]
	
	get_cvar_string("hostname", hostname, 63)
	replace(g_scrollMsg, SCROLLMSG_SIZE-1, "%hostname%", hostname)
	
	g_Length = strlen(g_scrollMsg)
	
	set_task(SPEED, "showMsg", 123, "", 0, "a", g_Length + 48)
	client_print(0, print_console, "%s", g_scrollMsg)
}

public setMessage()
{
	remove_task(123)		/* remove current messaging */
	read_argv(1, g_scrollMsg, SCROLLMSG_SIZE-1)
	
	g_Length = strlen(g_scrollMsg)
	
	new mytime[32]
	
	read_argv(2, mytime, 31)
	
	g_Frequency = str_to_num(mytime)
	
	if (g_Frequency > 0)
	{
		new minimal = floatround((g_Length + 48) * (SPEED + 0.1))
		
		if (g_Frequency < minimal)
		{
			server_print("%L", LANG_SERVER, "MIN_FREQ", minimal)
			g_Frequency = minimal
		}

		server_print("%L", LANG_SERVER, "MSG_FREQ", g_Frequency / 60, g_Frequency % 60)
		set_task(float(g_Frequency), "msgInit", 123, "", 0, "b")
	}
	else
		server_print("%L", LANG_SERVER, "MSG_DISABLED")
	
	return PLUGIN_HANDLED
}
Last edited by Ciprian on 21 Oct 2009, 18:37, edited 1 time in total.
Reason: Pentru texte lungi foloseste [sursa=nume]text[/sursa]!
Image
Daca team ajutat apasa butonul Image
Image
Image
User avatar
VINTYLA #
Membru, skill +4
Membru, skill +4
Posts: 1548
Joined: 05 Apr 2009, 00:48
Detinator Steam: Da
CS Status: Do more !
Detinator server CS: CS.EXTREAM.RO
SteamID: VINTILA23
Location: Craiova !
Has thanked: 114 times
Been thanked: 87 times

19 Oct 2009, 21:35

:)>- Mersi frumos! >:D<
STIINTA NU MOARE !
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 14:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

23 Nov 2009, 15:41

O singura intrebare..cum il fac sa ruleze mai rpd?
Image
User avatar
aNNakin
Fost administrator
Fost administrator
Posts: 10464
Joined: 17 Dec 2007, 21:42
Detinator Steam: Da
CS Status: a iubi - necesar si suficient
Detinator server CS: romania.cs16.ro
SteamID: anakin_cstrike16
Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator
Location: di.fm
Has thanked: 230 times
Been thanked: 787 times
Contact:

23 Nov 2009, 15:42

rEpTiLa0o4 wrote:O singura intrebare..cum il fac sa ruleze mai rpd?
#define SPEED 0.3
pui o valoare mai mica
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 14:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

23 Nov 2009, 17:12

Mersi mult..Ai un Multumesc;)
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests