Raised This Month: $ Target: $400
 0% 

Vip Chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 09-13-2020 , 02:32   Vip Chat
Reply With Quote #1

Hello! i want this plugin to go through say_team * like admin chat say_team @.

Code:
/* VSVipChat v1.3 

Description:
	Adds a private chat for vips.
Access flag by default:
	VIP_FLAG_F.
Type:
	Constant.
Commands:
	say_vip - say in VIP chat.
Note:
	bind "<button>" "messagemode say_vip"
*/

#include <amxmodx>
#include <VIPSystem>

#define ACCESS_FLAG VIP_FLAG_F

new msgidSayText, maxPlayers;

public plugin_init() 
{
	register_plugin("VSVipChat", "1.3", "ZETA [M|E|N]");
	
	msgidSayText = get_user_msgid("SayText");
	maxPlayers = get_maxplayers();
	
	register_clcmd("say_vip", "ClcmdSayVip", ADMIN_ALL, "");
}

public ClcmdSayVip(id)
{
	if (!VSGetVipFlag(id, ACCESS_FLAG))
	{
		return PLUGIN_HANDLED;
	}
	
	new name[32];
	get_user_name(id, name, charsmax(name));
	
	new message[64]; 
	read_args(message, charsmax(message)); 
	remove_quotes(message);
	
	new chat[64];
	if (is_user_alive(id))
	{
		chat = "(VIP) %s1 :  %s2";
	}
	else
	{
		chat = "*DEAD*(VIP) %s1 :  %s2";
	}
	
	ClientPrint(chat, name, message);
	return PLUGIN_HANDLED;
}

public ClientPrint(chat[], name[], message[])
{
	for (new id = 1; id <= maxPlayers; ++id)
	{
		if (VSGetVipFlag(id, ACCESS_FLAG))
		{
			message_begin(MSG_ONE, msgidSayText, _, id);
			write_byte(id);
			write_string(chat);
			write_string(name);
			write_string(message);
			message_end();
		}
	}
}
__________________

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!
GaBy96 is offline
Send a message via Skype™ to GaBy96
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:21.


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