Raised This Month: $ Target: $400
 0% 

mute list


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Johnoclock
Member
Join Date: Oct 2014
Location: denmark
Old 07-29-2015 , 13:32   mute list
Reply With Quote #1

hello i will to know if any mute plugin has a on mute add to a list
Johnoclock is offline
TheUnderTaker
Senior Member
Join Date: Dec 2013
Location: Israel
Old 07-30-2015 , 08:05   Re: mute list
Reply With Quote #2

Im on phone, i may forget something or else,
[PHP]
#include <sdktools>

decl string:buffer[MAX_NAME_LENGTH];
new Handle menu;
menu = CreateMenu(menu);

SetMenuTitle(menu, "Muted Players:");

Format(buffer,sizeof(buffer),"%N",buffer);
for(new i = 1,i <= MaxClients, i++)
{
if(IsClientMuted(i) && IsClientInGame(i))
{
AddMenuItem(menu,"", buffer);
}
}

if(GetMenuItemCount(menu) > 0)
{
AddMenuItem(menu,"No players muted ");
}

DisplayMenu(menu, MENU_TIME_FOREVER);
__________________
SourcePawn, C# and C++ Programmer.

My plugin list

Last edited by TheUnderTaker; 07-30-2015 at 08:11.
TheUnderTaker is offline
Reply



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 21:01.


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