Raised This Month: $ Target: $400
 0% 

Help with Color Chat plz.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bow
Junior Member
Join Date: Nov 2008
Location: Russia, Saint Petesburg
Old 02-19-2009 , 10:22   Help with Color Chat plz.
Reply With Quote #1

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");
}
__________________
www.makeserver.ru Amx Mod X Russian Support
I'm From Russia, Saint Petesburg
bow is offline
Send a message via ICQ to bow
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode