Hi, i'm from Russia )) Sorry for my bad english )
Can you help me with my small Plugin ? I want, to my message was been green color, but i not understand how i can do that ) I searh color+chat in Scripting Sub-Forum, but i dont understan cow can i do that )
Make plz colored message "[dgl] Напишите в чате ^"/dgl^" чтобы получить Deagle." in my plugin. The next time I will know how to do it. Tnx )
Plugin:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Deagle giver"
#define VERSION "1.0"
#define AUTHOR "bow [www.makeserver.ru]"
#define MSG_DELAY 6.0
#define MAX_CLIENTS 32
new const g_sMessage[] = "[dgl] Напишите в чате ^"/dgl^" чтобы получить Deagle.";
new bool:g_bFirst_connect[ MAX_CLIENTS + 1 ];
public plugin_init() {
register_clcmd("say /dgl","giveWeapon");
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("ResetHUD","eHud_reset","be");
}
public client_putinserver(id) g_bFirst_connect[id] = true;
public client_disconnect (id) g_bFirst_connect[id] = false;
public eHud_reset(id)
{
if( !g_bFirst_connect[id] )
return;
g_bFirst_connect[id] = false;
set_task( MSG_DELAY,"PrintDelayed",id);
}
public PrintDelayed(id)
{
client_print(id,print_chat,"%s",g_sMessage);
}
public giveWeapon(id)
{
if(is_user_alive(id))
give_item(id,"weapon_deagle");
}
__________________