It is currently 22 Feb 2019 20:52



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 8 posts ] 
 Cerere plugin HUD 
Author Message
Online
Membru, skill 0
Membru, skill 0

Joined: 03 Jun 2016 11:24
Posts: 57
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
Plugin Cerut: HUD
Descriere (adica ce face el mai exact):
As vrea un plugin hud sa apara exact ca acela de sus daca ma poate ajuta cineva raman dator si enorm recunoscator

| Afiseaza codul
Image

Serverul ruleaza (HLDS/ReHLDS): -
Versiune AMX Mod X: -
Modul Serverului: -

_________________
Skype: andrei.costan00

https://imgur.com/nm1JOgu.png


Last edited by Radu eXtream on 09 Feb 2019 23:59, edited 1 time in total.

Mutat la cereri-pluginuri & editat după model.



09 Feb 2019 22:43
Profile multumesc WWW
Fost moderator
Fost moderator
User avatar

Joined: 01 Jan 2013 01:25
Posts: 1229
Detinator Steam: Da
CS Status: Citesc
Reputatie: Fost super moderator
Fost detinator DR și ZM
Castigator membru CLUB eXtream @ MOS NICOLAE (3 luni)
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>

public plugin_init()
set_task(1.0, "hud_right_corner", _, _, _, "b")

public hud_right_corner()
{
set_dhudmessage(255, 20, 147, 1.0, 0.0, 1, 1.1, 1.0, 0.0, 0.0)
show_dhudmessage(0, "IP: 89.39.13.46")
}

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();
}


10 Feb 2019 00:35
Profile multumesc
Online
Membru, skill 0
Membru, skill 0

Joined: 03 Jun 2016 11:24
Posts: 57
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
nu merge sa il compilez

_________________
Skype: andrei.costan00

https://imgur.com/nm1JOgu.png


19 Feb 2019 21:22
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Dec 2018 00:57
Posts: 80
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
Fond eXtream: 0
Boss de Boss wrote:
nu merge sa il compilez

ti l-am copilat eu na
amxx
| Afiseaza codul
http://www.girlshare.ro/3490259730.1


19 Feb 2019 21:28
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 03 Jun 2016 11:24
Posts: 57
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
dar cum ai facut ca eu n-am reusit ca vreau sa schimb ip

_________________
Skype: andrei.costan00

https://imgur.com/nm1JOgu.png


19 Feb 2019 21:45
Profile multumesc WWW
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2387
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
Boss de Boss wrote:
dar cum ai facut ca eu n-am reusit ca vreau sa schimb ip



IP-ul il schimbi unde e textul ingrosat

Quote:
public hud_right_corner()
{
set_dhudmessage(255, 20, 147, 1.0, 0.0, 1, 1.1, 1.0, 0.0, 0.0)
show_dhudmessage(0, "IP: 89.39.13.46")
}


20 Feb 2019 08:09
Profile multumesc
Online
Membru, skill 0
Membru, skill 0

Joined: 03 Jun 2016 11:24
Posts: 57
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
stiu dar mie sma care mi la dat nu pot sa il compilez

_________________
Skype: andrei.costan00

https://imgur.com/nm1JOgu.png


21 Feb 2019 20:03
Profile multumesc WWW
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2387
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
Boss de Boss wrote:
stiu dar mie sma care mi la dat nu pot sa il compilez


Il compilezi online pe https://amx.freakz.ro/


22 Feb 2019 07:27
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: Boss de Boss and 81 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group