Power.
28-06-2012, 10:27 PM
Descriere: Acest plugin va afisa in permamenta un mesaj tip HUD , cu scorul echipelor.Pentru a modifica culoarea mesajului , cautati in .sma linia
Versiune: 1.0
Autor: x
Descarcare:
/* Hud Score Colorat
================================
| SkepT Jr. |
================================
Copyright © 2015, SkepT Jr.
*/
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#define PLUGIN "Hud Score Colorat"
#define VERSION "v1"
#define AUTHOR "SkepT Jr."
#define namered 0
#define namegreen 255
#define nameblue 255
#define scorered 255
#define scoregreen 0
#define scoreblue 0
new sz_FuriensWin = 0;
new sz_AntiFuriensWin = 0;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event ( "TextMsg", "Round_Restart", "a", "2&#Game_C", "2&#Game_w", "2&#Game_will_restart_in" );
set_task( 1.0, "Score", _, _, _, "b" );
// Add your code here...
}
public Round_Restart ( ) {
sz_FuriensWin = 0;
sz_AntiFuriensWin = 0;
}
public Score ( id ) {
set_hudmessage ( namered, namegreen, nameblue, -1.0, is_user_alive ( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 2 );
show_dhudmessage ( 0, "[ Furien ] - vs - [ Anti-Furien ]" );
set_hudmessage ( scorered, scoregreen, scoreblue, -1.0, is_user_alive ( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 3 );
show_hudmessage ( 0, "[ %d ] - [ %d ]", sz_FuriensWin, sz_AntiFuriensWin );
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1033 f0 fs16 n par }
*/
set_hudmessage( [COLOR="Red"]255, 255, 255, -1.0, 0.86, 0, 6.0, 1.0 )
ceea ce e colorat cu rosu este culoarea ( alba ) , modificati dupa bunul plac
[B]Culori:
Verde -> 0, 255, 0
Rosu -> 255, 0, 0
Albastru -> 0, 0, 255
Mov -> 255, 0, 255
Bleo -> 0, 255, 255
Alb -> 255, 255, 255
Instalare:
1. Fisierul hud_score.sma il puneti in addons/amxmodx/scripting
2. Fisierul hud_score.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
hud_score.amxx
Imagini:
<b>You have to register to ba able to see this link</b>
Versiune: 1.0
Autor: x
Descarcare:
/* Hud Score Colorat
================================
| SkepT Jr. |
================================
Copyright © 2015, SkepT Jr.
*/
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#define PLUGIN "Hud Score Colorat"
#define VERSION "v1"
#define AUTHOR "SkepT Jr."
#define namered 0
#define namegreen 255
#define nameblue 255
#define scorered 255
#define scoregreen 0
#define scoreblue 0
new sz_FuriensWin = 0;
new sz_AntiFuriensWin = 0;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event ( "TextMsg", "Round_Restart", "a", "2&#Game_C", "2&#Game_w", "2&#Game_will_restart_in" );
set_task( 1.0, "Score", _, _, _, "b" );
// Add your code here...
}
public Round_Restart ( ) {
sz_FuriensWin = 0;
sz_AntiFuriensWin = 0;
}
public Score ( id ) {
set_hudmessage ( namered, namegreen, nameblue, -1.0, is_user_alive ( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 2 );
show_dhudmessage ( 0, "[ Furien ] - vs - [ Anti-Furien ]" );
set_hudmessage ( scorered, scoregreen, scoreblue, -1.0, is_user_alive ( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 3 );
show_hudmessage ( 0, "[ %d ] - [ %d ]", sz_FuriensWin, sz_AntiFuriensWin );
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1033 f0 fs16 n par }
*/
set_hudmessage( [COLOR="Red"]255, 255, 255, -1.0, 0.86, 0, 6.0, 1.0 )
ceea ce e colorat cu rosu este culoarea ( alba ) , modificati dupa bunul plac
[B]Culori:
Verde -> 0, 255, 0
Rosu -> 255, 0, 0
Albastru -> 0, 0, 255
Mov -> 255, 0, 255
Bleo -> 0, 255, 255
Alb -> 255, 255, 255
Instalare:
1. Fisierul hud_score.sma il puneti in addons/amxmodx/scripting
2. Fisierul hud_score.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
hud_score.amxx
Imagini:
<b>You have to register to ba able to see this link</b>