I dont know how to set prefix [V.I.P] in chat for users who have flag "t" (ADMIN_LEVEL_H), can someone give me an idea, i want to learn the steps
Can i do it like this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
public plugin_init() {
register_plugin("VIP_say", "1.0", "uknown")
register_clcmd("say", "vip")
}
public vip(id){
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new said[192], name[30]
get_user_name(id,name,29)
read_args(said,191)
remove_quotes(said)
ColorChat(0, GREEN,"[V.I.P] ^3%s ^1: %s",name,said)
return PLUGIN_HANDLED
}
}