AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with Color Chat plz. (https://forums.alliedmods.net/showthread.php?t=86009)

bow 02-19-2009 10:22

Help with Color Chat plz.
 
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");
}


Dr.G 02-19-2009 10:29

Re: Help with Color Chat plz.
 
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`?

xPaw 02-19-2009 12:31

Re: Help with Color Chat plz.
 
omg!... dont use ResetHUD for catching playerspawn, check the VEN's guide to catch spawn correctly

BFK_GoNER 02-19-2009 13:19

Re: Help with Color Chat plz.
 
Quote:

Originally Posted by xPaw (Post 764680)
check the VEN's guide to catch spawn correctly

link plz?

is it this one by any chance?

Dr.G 02-19-2009 13:39

Re: Help with Color Chat plz.
 
yea BFK thats tha link -> iam 99.89276 % sure off ;)

xPaw 02-19-2009 13:55

Re: Help with Color Chat plz.
 
yes it is

fysiks 02-19-2009 14:15

Re: Help with Color Chat plz.
 
I don't understand how people keep getting https links.

BFK_GoNER 02-20-2009 02:34

Re: Help with Color Chat plz.
 
What's wrong with getting http links?

bow 02-20-2009 03:02

Re: Help with Color Chat plz.
 
So, can you help me ? )

fysiks 02-20-2009 03:44

Re: Help with Color Chat plz.
 
Quote:

Originally Posted by bow (Post 765102)
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 (Post 764765)
I don't understand how people keep getting httpS links.

Quote:

Originally Posted by BFK_GoNER (Post 765099)
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?


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

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