|
Member
|
04-28-2020
, 08:24
Re: what is this plugin
|
#7
|
Quote:
Originally Posted by JocAnis
if you are using minimum 1.8.3 amxmodx:
Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /gg", "gg")
register_clcmd("say /bg", "bg")
register_clcmd("say_team /gg", "gg")
register_clcmd("say_team /bg", "bg")
}
public gg( id )
{
if( cs_get_user_team( id ) == CS_TEAM_CT )
ColorChat(0, BLUE, "%n:^1 Good Game !", id )
else if( cs_get_user_team( id ) == CS_TEAM_T )
ColorChat(0, RED, "%n:^1 Good Game !", id )
else
ColorChat(0, GREY, "%n:^1 Good Game !", id )
return PLUGIN_HANDLED
}
public bg( id )
{
if( cs_get_user_team( id ) == CS_TEAM_CT )
ColorChat(0, BLUE, "%n:^1 Bad Game !", id )
else if( cs_get_user_team( id ) == CS_TEAM_T )
ColorChat(0, RED, "%n:^1 Bad Game !", id )
else
ColorChat(0, GREY, "%n:^1 Bad Game !", id )
return PLUGIN_HANDLED
}
|
again its the same by alfread
its just when wome one type gg
it will be
Good Game!
and this is not why i need
i need when player say gg
player : good game
Last edited by Ahmad111; 04-28-2020 at 08:26.
|
|
|
|