Senior Member
|
![Old](images/statusicon/post_old.svg)
06-11-2010
, 18:44
[ES] Ayuda HudMenssage
|
#1
|
Miren, un amigo me pidio que le haga un plugin re flashero que es para que al escribir "Dueño" (cuando lo escribe alguien en SAY) salga el MSN de el dueño de a 1 Letra en diferentes colores en HudMessage pero no se como ahcerlo, alguien podria ayudarme? dejo el plug :
PHP Code:
#include <amxmodx> #include <amxmisc>
#define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "xxx"
new g_iMsgSayText
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_concmd("amx_xxx","pija",ADMIN_LEVEL_A") register_concmd("say tetas", "culo") register_concmd("say_team tetas", "culo2") g_iMsgSayText = get_user_msgid("SayText") }
public pija () {
set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1) ShowSyncHudMsg(0, gmsgHudSync, [ [email protected] ]) }
public culo1 (id, level, cid) { set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1) ShowSyncHudMsg(0, gmsgHudSync, [ [email protected] ]) }
public culo2 (id, level, cid) { set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1) ShowSyncHudMsg(0, gmsgHudSync, [ [email protected] ]) }
stock ChatColor(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") // Green Color replace_all(msg, 190, "!y", "^1") // Default Color replace_all(msg, 190, "!t", "^3") // Team Color replace_all(msg, 190, "!team2", "^0") // Team2 Color if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, g_iMsgSayText, _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
|
|