Jump to content
Sign in to follow this  
The Seeker

[Plugin] Mesaj Hud

Recommended Posts

Nume plugin:  Hud permanent
Descriere: Cu ajutorul acestui plugin va puteti fixa un mesaj in hud, cu ocazia sarbatorilor ce au sa vina, gen: Echipa WATF va ureaza sarbatori fericite!
Versiune: 1.0
Link: 

#include <amxmodx>

#pragma semicolon 1

static const PLUGIN[ ]= "Hud Permanent";
static const VERSION[ ]= "1.0";
static const AUTHOR[ ]= "Rap";

static const g_szB[ ]= "b";
static const g_szMessage[ ]= "ECHIPA WATF VA UREAZA SARBATORI FERICITE!";

new SyncHudMessage;

public plugin_init( )
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	SyncHudMessage = CreateHudSyncObj( );
	
	set_task( 1.0, "ShowMessage", _, _, _, g_szB );
}

public ShowMessage( )
{
	new Players[32], iNum;
	get_players(Players, iNum, "ch");
	
	for( new i = 0; i < iNum; i++ )
	{
		set_hudmessage(0, 100, 150, -1.0, 0.02, 0, 0.0, 1.0, 0.0, 1.0, 3 );
		ShowSyncHudMsg(0, SyncHudMessage, "%s", g_szMessage);
	}
}


Mod de instalare:  Compilati sursa in fisier .amxx, apoi il adaugati in amxmodx/plugins si il treceti in amxmodx/configs/plugins.ini.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.