I have this mod when an admin say in chat "/arishon XXX"
XXX = Something That The Admin Writes
so it show hudmessage and the XXX in there.
there are to problems
1)its shown for 1 sec and disappear very fast
2)no one can write in the chat.
this is the code
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new const Cmds[][]={"First"}
new const CmdsName[][]={"First One Who Writes"}
new iName[32]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /arishon", "cmdHandleSay" );
register_clcmd( "say_team /arishon", "cmdHandleSay" );
}
public cmdHandleSay(id)
{
new szMessage[32]
read_args(szMessage, charsmax(szMessage));
remove_quotes(szMessage);
new message[128];
read_argv(1, message, 127);
for(new i=0;i<sizeof(Cmds);i++)
{
HandleChatCmd(id,i)
return PLUGIN_HANDLED
}
}
public HandleChatCmd(id, type) {
new message[128], cmd[33], arg[65],name[32];
read_argv (1, message, 128);
get_user_name(id,name,31);
parse(message,cmd,32,arg,64);
switch(type)
{
case 0:{
if(get_user_flags(id) == ADMIN_KICK)
{
client_cmd(id,"say /arishon %s",arg)
set_hudmessage(0, 255, 0, 0.13, 0.23, 0, 6.0, 15)
show_hudmessage(0, "Arishon She Roshem %s Ovet CT",arg)
}
}
}
}