|
Member
Join Date: Oct 2012
Location: Spain
|
09-13-2020
, 13:51
Re: Vip Chat
|
#8
|
Quote:
Originally Posted by drakunovu6
Didn't test it but try this one, uses the method of adminchat.sma but with the *, vip flags and say if it's dead or not
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <VIPSystem>
#define ACCESS_FLAG VIP_FLAG_F
public plugin_init()
{
register_plugin("VSVipChat", "1.3", "ZETA [M|E|N]");
register_clcmd("say_team", "cmdSayVip", ADMIN_ALL, "");
}
public cmdSayVip(id)
{
new said[2];
read_argv(1, said, 1);
if (said[0] != '*' || !VSGetVipFlag(id, ACCESS_FLAG))
return PLUGIN_CONTINUE;
new message[192], name[32];
new players[32], inum;
read_args(message, 191);
remove_quotes(message);
get_user_name(id, name, 31);
format(message, 191, "%s(VIP) %s : %s", is_user_alive(id) ? "" : "*DEAD* ", name, message[1]);
get_players(players, inum)
for (new i = 0; i < inum; ++i)
{
if (players[i] != id && VSGetVipFlag(id, ACCESS_FLAG))
client_print(players[i], print_chat, "%s", message);
}
client_print(id, print_chat, "%s", message);
return PLUGIN_HANDLED;
}
|
Thanks but it doesn't work
__________________
We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!
|
|
|
|