[Script]Head Icon

YEA
✔️ HL Verified
Joined
Oct 31, 2014
Messages
200
Best answers
0
someone asked for this

PHP:
#include < amxmodx >
#include < fakemeta >
#include < engine >

new Diamond[ 33 ];

public plugin_init() register_forward( FM_AddToFullPack, "AddToFullPack_Post", true );

public plugin_precache() precache_model( "sprites/camper.spr" );

public AddToFullPack_Post( ES_Handle, e, iEntity, iHost, iHostFlags, iPlayer, iSet )
{
	if( iEntity == Diamond[ iHost ] ) set_es( ES_Handle, ES_Effects, EF_NODRAW );

	if( !iPlayer ) return;

	if( !is_valid_ent( Diamond[ iEntity ] ) )
	{
		Diamond[ iEntity ] = create_entity( "env_sprite" );
		engfunc( EngFunc_SetModel, Diamond[ iEntity ], "sprites/camper.spr" );
		set_rendering( Diamond[ iEntity ], kRenderFxNone, 255, 255, 255, kRenderTransAdd, 255 );
		DispatchKeyValue( Diamond[ iEntity ], "scale", "0.5" );
		DispatchKeyValue( Diamond[ iEntity ], "framerate", "10.0" );
		DispatchSpawn( Diamond[ iEntity ] )
	}

	static Float: org[ 3 ], Float: ofs[ 3 ];
	get_es( ES_Handle, ES_Origin, org );
	get_es( ES_Handle, ES_Maxs, ofs );
	org[ 2 ] += ofs[ 2 ];
	set_pev( Diamond[ iEntity ], pev_origin, org );
}

public client_disconnect( Client )
{
	if( is_valid_ent( Diamond[ Client ] ) )
	{
		remove_entity( Diamond[ Client ] );
		Diamond[ Client ] = 0;
	}
}
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
I'm interested in how you made the names appear above players' heads.
 
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
That's not very informative. TEACH ME!
 
Last edited:
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Meh, client side :/
 
Lost in space
Banned
Joined
Dec 29, 2014
Messages
253
Best answers
0
well if there would be a server with those scripts...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top