[Rezolvat] Repozitionare mesaj hud

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
RAZVANN.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3610
Joined: 03 Nov 2008, 21:07
Detinator Steam: Da
CS Status: Excelent
SteamID: Privat
Reputatie: Fost moderator ajutator
Utilizator neserios ( tepar )
Has thanked: 206 times
Been thanked: 179 times

11 Feb 2014, 15:57

Vreau sa fie pe centru mesajul si sa fie verde, ca aici: Image
Incalzire | Afiseaza codul
#include <amxmodx>

#define PLUGIN "WarmUp Round"
#define VERSION "1.0"
#define AUTHOR "eXtreamCS"

new bool:WarmUp;
new Seconds = 60;

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("CurWeapon", "Current_Weapon", "be", "1=1", "2!29");
	WarmUp = true;
	set_task(120.0, "RemoveWarmUp", 123);
	set_task(1.0, "ShowCountDown", 1234,_,_,"b",_);
}
public Current_Weapon(id)
{
	if(WarmUp)
		engclient_cmd(id, "weapon_knife");
}
public ShowCountDown()
{

	set_hudmessage(255, 255, 255, 0.03, 0.17, 0, 6.0, 1.0, 0.1, 0.1, 2);
	show_hudmessage(0, "Runda de incalzire: %d secunde ramase.", Seconds);
	Seconds--;
	if(Seconds <= 0)
	{

		if(task_exists(1234))
			remove_task(1234);
		WarmUp = false;
		server_cmd("sv_restart 1");
		return;
	}
}
public RemoveWarmUp() WarmUp = false;
Si cand se termina runda de incalzire sa scrie in chat ceva, pun eu textul pe urma.
Last edited by RAZVANN. on 11 Feb 2014, 20:30, edited 1 time in total.
RoyalServer 2
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

11 Feb 2014, 20:13

| Afiseaza codul
#include <amxmodx>

#define PLUGIN "WarmUp Round"
#define VERSION "1.0"
#define AUTHOR "eXtreamCS"

new bool:WarmUp;
new Seconds = 60;

new const g_Mesaj[ ] = "Daca nu dai thanks la post te ia mama dracu!"; 

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("CurWeapon", "Current_Weapon", "be", "1=1", "2!29");
	WarmUp = true;
	set_task(120.0, "RemoveWarmUp", 123);
	set_task(1.0, "ShowCountDown", 1234,_,_,"b",_);
}
public Current_Weapon(id)
{
	if(WarmUp)
		engclient_cmd(id, "weapon_knife");
}
public ShowCountDown()
{
	
	set_hudmessage(0, 150, 5, -1.0, 0.35, 0, 6.0, 1.0, 0.1, 0.1, 2);
	show_hudmessage(0, "Runda de incalzire: %d secunde ramase.", Seconds);
	Seconds--;
	if(Seconds <= 0)
	{
		
		if(task_exists(1234))
			remove_task(1234);
		
		client_print( 0, print_chat, g_Mesaj );
		
		WarmUp = false;
		server_cmd("sv_restart 1");
		return;
	}
}
public RemoveWarmUp() WarmUp = false;
Re-editat :))
Retras
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests