Adugare culori !

Categoria unde puteti cere pentru tutoriale.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

23 Feb 2014, 17:38

Salut. As dori si eu un tutorial in care sa mi se explice, cum fac sa colorez un mesaj care se afiseaza in chat. Imi trebuie la un plugin ! nu este script mare, o banalitate ! Daca stiti vre-un tutorial va rog sa-mi aratati . Multumesc!

Plugin-ul :
| Afiseaza codul
#include <amxmodx>

#include <amxmisc>

#include <engine>



#define ACCESS ADMIN_SLAY



new Float:g_LastRestart[33]



public plugin_init() 

{

	register_plugin("Restart","2.0","Alka")

	register_clcmd("say /restart","say_restart",ACCESS)

}



public say_restart(id) 

{

	if(!(get_user_flags(id) & ACCESS))

		return

	

	new Float:Time = halflife_time()

	if(Time - g_LastRestart[id] < 10.0)

		return

	

	g_LastRestart[id] = Time

 

	server_cmd("sv_restart 1")

	 client_print(0, print_chat, "[---------------- DEVIL.RO -----------------]")
       client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
       client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
	 client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
	 client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
	 client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
	 client_print(0, print_chat, "[---- GAME RESTART! ** SUCCESS ! ----]")
	 client_print(0, print_chat, "[---------------- DEVIL.RO -----------------]")
	

	set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0) 

	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )

	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )

	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )

	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )

	show_hudmessage(0, "Live ! Live ! Live ! GL & HF !" )

}
RoyalServer
User avatar
SaLLeR ;ddd
Membru, skill +4
Membru, skill +4
Posts: 1545
Joined: 23 Jul 2011, 00:08
Detinator Steam: Nu
CS Status: Nu mai joc.
Detinator server CS: Mai demult.
SteamID: Inexistent.
Reputatie: Restrictie moderator!
Membru Club eXtreamCS (1 luna)
Location: Cum ajung acasa?
Has thanked: 119 times
Been thanked: 164 times

24 Feb 2014, 05:59

Modifici live cu ce vrei tu.

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <alt_chat>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Grim"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /restart", "restart", ADMIN_CHAT)
g_msgsaytext = get_user_msgid( "SayText" );
}

public restart(id, level, cid)
{
if( !cmd_access(id, level, cid, 0) )
return PLUGIN_HANDLED;

set_cvar_num("sv_restartround", 1)
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")

new name[32]
get_user_name(id, name, 31)
client_print(0, print_chat, "^x01 ADMIN ^x04 %s ^x03 started the game!", name)
return PLUGIN_CONTINUE;
}
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

24 Feb 2014, 14:39

| Afiseaza codul
[quote="SaLLeR ;ddd"]Modifici live cu ce vrei tu.
[code]#include <amxmodx>
#include <amxmisc>
#include <alt_chat>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Grim"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /restart", "restart", ADMIN_CHAT)
g_msgsaytext = get_user_msgid( "SayText" );
}

public restart(id, level, cid)
{
if( !cmd_access(id, level, cid, 0) )
return PLUGIN_HANDLED;

set_cvar_num("sv_restartround", 1)
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")
client_print(0, print_chat, "^x04** ^x01 [ ^x03 ----- ^x04 LIVE ^x03 ----- ^x01]")

new name[32]
get_user_name(id, name, 31)
client_print(0, print_chat, "^x01 ADMIN ^x04 %s ^x03 started the game!", name)
return PLUGIN_CONTINUE;
}[/code][/quote]
Da. Multumesc. Apreciez, dar vreau sa invat cum pot adauga culorile... Asta ma intereseaza mai mult !
User avatar
Chris Duskblade
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 2780
Joined: 18 Jun 2013, 16:46
Detinator Steam: Da
Reputatie: Fost super moderator
Nume anterior: Cristinel.
Utilizator neserios (tepar)
Location: Timișoara
Has thanked: 62 times
Been thanked: 15 times
Contact:

02 Mar 2014, 20:07

^x01 ^x02 x^03 ^x04 sunt culorile , nu le pot explica poti cauta .
kid #
Membru, skill +1
Membru, skill +1
Posts: 112
Joined: 27 Feb 2014, 14:27
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 49 times
Been thanked: 15 times
Contact:

07 Mar 2014, 18:03

Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests