Raised This Month: $ Target: $400
 0% 

Help with Color Chat plz.


Post New Thread Reply   
 
Thread Tools Display Modes
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
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-19-2009 , 10:29   Re: Help with Color Chat plz.
Reply With Quote #2

I think ive seen more the 50 questions about this, the last month so if were you i would do a search again and try something, i even think ive seen a tutorial, in the tutorial forums about this.

How did you try to do it`?
__________________
Dr.G is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-19-2009 , 12:31   Re: Help with Color Chat plz.
Reply With Quote #3

omg!... dont use ResetHUD for catching playerspawn, check the VEN's guide to catch spawn correctly
__________________
xPaw is offline
BFK_GoNER
Junior Member
Join Date: Feb 2009
Location: Holland
Old 02-19-2009 , 13:19   Re: Help with Color Chat plz.
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
check the VEN's guide to catch spawn correctly
link plz?

is it this one by any chance?

Last edited by BFK_GoNER; 02-19-2009 at 13:22.
BFK_GoNER is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 02-19-2009 , 13:39   Re: Help with Color Chat plz.
Reply With Quote #5

yea BFK thats tha link -> iam 99.89276 % sure off ;)
__________________
Dr.G is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-19-2009 , 13:55   Re: Help with Color Chat plz.
Reply With Quote #6

yes it is
__________________
xPaw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-19-2009 , 14:15   Re: Help with Color Chat plz.
Reply With Quote #7

I don't understand how people keep getting https links.
fysiks is offline
BFK_GoNER
Junior Member
Join Date: Feb 2009
Location: Holland
Old 02-20-2009 , 02:34   Re: Help with Color Chat plz.
Reply With Quote #8

What's wrong with getting http links?
BFK_GoNER is offline
bow
Junior Member
Join Date: Nov 2008
Location: Russia, Saint Petesburg
Old 02-20-2009 , 03:02   Re: Help with Color Chat plz.
Reply With Quote #9

So, can you help me ? )
__________________
www.makeserver.ru Amx Mod X Russian Support
I'm From Russia, Saint Petesburg
bow is offline
Send a message via ICQ to bow
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-20-2009 , 03:44   Re: Help with Color Chat plz.
Reply With Quote #10

Quote:
Originally Posted by bow View Post
So, can you help me ? )
As the first reply stated, there are many threads on this topic. Read through those and it may help you.

Quote:
Originally Posted by fysiks View Post
I don't understand how people keep getting httpS links.
Quote:
Originally Posted by BFK_GoNER View Post
What's wrong with getting http links?
http != https. The link was to a secure webserver with unsecure/nonsecure content. Do you not get a popup about unsecure content when you click on the link above?
fysiks is offline
Reply


Thread Tools
Display Modes

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