Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Furien Score & Round
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
1617
FarulNUMOARE
[Banned user]
Status: Offline
(since 06-09-2013 11:05)
Joined: 14 Aug 2013
Posts: 264
,
Topics: 37
Location:
Constanta.
Reputation:
-100.7
Votes
: 10
Posted: 27-08-2013, 13:08:08
| Translate post to:
... (
Click for more languages
)
Descriere
:
Am vazut acest plugin pe un server de zombie... doar ca avea la mesaj Zombie si Human.
L-am cautat ceva timp si nu am dat de el, deci l-am facut.
Descarcare
:
Code:
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < dhudmessage >
#pragma semicolon 1
// --| Credite lui CryWolf pentru 'layout' !!
new const
PLUGIN_NAME[ ] = "Furien Score & Round",
PLUGIN_VERSION[ ] = "0.1.0";
/* Copyright (c) 2013 Askhanar @eXtreamCS.com
http://www.eXtreamCS.com/forum
http://www.amxmodx.org
http://www.amxmodx.ro
*/
// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
// --| Aici sunt culorile de la mesajele: Furien AntiFurien si Round
#define iNameRed 0
#define iNameGreen 255
#define iNameBlue 255
// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
// --| Aici sunt culorile de la mesajele: numarul de castiguri si runde.
#define iScoreRed 255
#define iScoreGreen 0
#define iScoreBlue 0
new const
g_szTeamsMessage[ ] = " |- Furien AntiFurien -| ",
g_szScoreMessage[ ] = "%02i %02i",
g_szRoundMessage[ ] = " Round ",
g_szRound[ ] = " %02i ";
enum _:iTeamWons
{
FURIEN,
ANTIFURIEN
}
new g_iTeamWons[ iTeamWons ];
new g_iRounds;
new SyncHudTeamNames, SyncHudTeamScore;
public plugin_init( )
{
register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" );
register_event( "HLTV", "ev_NewRound", "a", "1=0", "2=0" );
register_event( "TextMsg", "ev_RoundRestart", "a", "2&#Game_C", "2&#Game_w" );
register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
g_iRounds = 0;
g_iTeamWons[ FURIEN ] = 0;
g_iTeamWons[ ANTIFURIEN ] = 0;
SyncHudTeamNames = CreateHudSyncObj( );
SyncHudTeamScore = CreateHudSyncObj( );
set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 );
// Add your code here...
}
public ev_NewRound( ) g_iRounds++;
public ev_RoundRestart( ) { g_iRounds = 0; g_iTeamWons[ FURIEN ] = 0; g_iTeamWons[ ANTIFURIEN ] = 0; }
public ev_TerroristWin( ) g_iTeamWons[ FURIEN ]++;
public ev_CtWin( ) g_iTeamWons[ ANTIFURIEN ]++;
public task_DisplayHudScore( )
{
set_hudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, 0.01, 0, _, 1.0, _, _, 2 );
ShowSyncHudMsg( 0, SyncHudTeamNames, g_szTeamsMessage );
set_hudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, 0.01, 0, _, 1.0, _, _, 3 );
ShowSyncHudMsg( 0, SyncHudTeamScore, g_szScoreMessage, g_iTeamWons[ FURIEN ], g_iTeamWons[ ANTIFURIEN ] );
set_hudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, 0.03, 0, _, 1.0, _, _ );
show_dhudmessage( 0, g_szRoundMessage );
set_hudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, 0.06, 0, _, 1.0, _, _ );
show_dhudmessage( 0, g_szRound, g_iRounds );
}
De asemenea veti avea nevoie de urmatorul include.
Code:
#if defined _dhudmessage_included
#endinput
#endif
#define _dhudmessage_included
#include <amxmodx>
stock __dhud_color;
stock __dhud_x;
stock __dhud_y;
stock __dhud_effect;
stock __dhud_fxtime;
stock __dhud_holdtime;
stock __dhud_fadeintime;
stock __dhud_fadeouttime;
stock __dhud_reliable;
stock set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false )
{
#define clamp_byte(%1) ( clamp( %1, 0, 255 ) )
#define pack_color(%1,%2,%3) ( %3 + ( %2 << 8 ) + ( %1 << 16 ) )
__dhud_color = pack_color( clamp_byte( red ), clamp_byte( green ), clamp_byte( blue ) );
__dhud_x = _:x;
__dhud_y = _:y;
__dhud_effect = effects;
__dhud_fxtime = _:fxtime;
__dhud_holdtime = _:holdtime;
__dhud_fadeintime = _:fadeintime;
__dhud_fadeouttime = _:fadeouttime;
__dhud_reliable = _:reliable;
return 1;
}
stock show_dhudmessage( index, const message[], any:... )
{
new buffer[ 128 ];
new numArguments = numargs();
if( numArguments == 2 )
{
send_dhudMessage( index, message );
}
else if( index || numArguments == 3 )
{
vformat( buffer, charsmax( buffer ), message, 3 );
send_dhudMessage( index, buffer );
}
else
{
new playersList[ 32 ], numPlayers;
get_players( playersList, numPlayers, "ch" );
if( !numPlayers )
{
return 0;
}
new Array:handleArrayML = ArrayCreate();
for( new i = 2, j; i < numArguments; i++ )
{
if( getarg( i ) == LANG_PLAYER )
{
while( ( buffer[ j ] = getarg( i + 1, j++ ) ) ) {}
j = 0;
if( GetLangTransKey( buffer ) != TransKey_Bad )
{
ArrayPushCell( handleArrayML, i++ );
}
}
}
new size = ArraySize( handleArrayML );
if( !size )
{
vformat( buffer, charsmax( buffer ), message, 3 );
send_dhudMessage( index, buffer );
}
else
{
for( new i = 0, j; i < numPlayers; i++ )
{
index = playersList[ i ];
for( j = 0; j < size; j++ )
{
setarg( ArrayGetCell( handleArrayML, j ), 0, index );
}
vformat( buffer, charsmax( buffer ), message, 3 );
send_dhudMessage( index, buffer );
}
}
ArrayDestroy( handleArrayML );
}
return 1;
}
stock send_dhudMessage( const index, const message[] )
{
message_begin( __dhud_reliable ? ( index ? MSG_ONE : MSG_ALL ) : ( index ? MSG_ONE_UNRELIABLE : MSG_BROADCAST ), SVC_DIRECTOR, _, index );
{
write_byte( strlen( message ) + 31 );
write_byte( DRC_CMD_MESSAGE );
write_byte( __dhud_effect );
write_long( __dhud_color );
write_long( __dhud_x );
write_long( __dhud_y );
write_long( __dhud_fadeintime );
write_long( __dhud_fadeouttime );
write_long( __dhud_holdtime );
write_long( __dhud_fxtime );
write_string( message );
}
message_end();
}
Nume
: Furien Score & Round.
Versiune
: 0.1.0.
Autor
: Askhanar.
Instalare
:
1. Fisierul
fsr.sma
il puneti in
addons/amxmodx/scripting
.
2. Fisierul
fsr.amxx
il puneti in
addons/amxmodx/plugins
.
3. Intrati in fisierul
addons/amxmodx/configs/plugins.ini
si adaugati la urma:
Code:
fsr.amxx
Imagini
:
Alte informatii
:
Modificati culorile mesajelor dupa cum urmeaza:
Code:
// --| Culorile in RRR GGG BBB (poate fi luata si in paint).
// --| Aici sunt culorile de la mesajele: Furien AntiFurien si Round
#define iNameRed 0
#define iNameGreen 255
#define iNameBlue 255
// --| Culorile in RRR GGG BBB (poate fi luata si in paint).
// --| Aici sunt culorile de la mesajele: numarul de castiguri si runde.
#define iScoreRed 255
#define iScoreGreen 0
#define iScoreBlue 0
JB.FREAKZ.RO
este numarul 1!
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 06-08-2025, 13:01:30
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details