Raised This Month: $51 Target: $400
 12% 

[REQ] Permission to speak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-19-2012 , 13:12   [REQ] Permission to speak
Reply With Quote #1

Sorry to bother the experienced guys, I really tried to get it working myself


I hope someone here can make a PTS(permission to speak) plugin.

When you start it, it must /silence @all, but still let admins unsilence themselves using the adminmenu or the /unsilence command.

When you type /PTS it should give you a menu with options:
1) send a Permission To Speak request (adds the requester to the PTS queue)
2) show PTS queue
3) grant PTS (choose from the queue) (only visible for admins with root access)

If PTS is granted: unsilence the chosen person

Last edited by TheReaperr; 06-23-2012 at 08:05. Reason: better title
TheReaperr is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-19-2012 , 13:16   Re: Request plugin
Reply With Quote #2

Do you really want a MetaMod: Source plugin or do you want a SourceMod plugin?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-19-2012 , 13:19   Re: Request plugin
Reply With Quote #3

oh a sourcemod plugin woops wrong ..forumpart then right?:$::$

Edit: thanks for moving it instead of deleting it

Last edited by TheReaperr; 06-19-2012 at 14:00. Reason: thank
TheReaperr is offline
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-20-2012 , 15:58   Re: Permission to speak
Reply With Quote #4

Is this even possible?
If noone has the time to write this completely, can you please point me in the right direction so I can try to do it.
TheReaperr is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-20-2012 , 16:47   Re: Permission to speak
Reply With Quote #5

Quote:
Originally Posted by TheReaperr View Post
Is this even possible?
If noone has the time to write this completely, can you please point me in the right direction so I can try to do it.
It's possible.

Lets see, to point you in the right direction, you'll need BaseComm_SetClientMute to mute/unmute players voice chat, OnClientConnected to mute them as they join, an adt_array to store the queue with the FindValueInArray (use with OnClientDisconnected to remove client from queue); PushArrayCell; RemoveFromArray; GetArraySize; and GetArrayCell commands, a loop using the last two commands listed to show the list, RegConsoleCommand to register the /pts command, RegAdminCommand to register the admin command to show the list, and the Menu API to display the list to admins and let them select someone to unmute.

If you want to block their text chat, you also need BaseComm_SetClientGag.

Note that FindValueInArray returns -1 when it doesn't find a value.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-20-2012 at 16:53.
Powerlord is offline
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-20-2012 , 19:04   Re: Permission to speak
Reply With Quote #6

Can I use OnPluginStart
ServerCommand("sm_silence @all") as well?
TheReaperr is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-20-2012 , 19:08   Re: Permission to speak
Reply With Quote #7

Quote:
Originally Posted by TheReaperr View Post
Can I use OnPluginStart
ServerCommand("sm_silence @all") as well?
if you want to have the lazy way out of it then i guess.
Why would you silence them if your looking for a chat trigger?

Command Options:
Mute - No voice chat.
Gag - No chat.
Silence - Both.
Mitchell is offline
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-20-2012 , 19:12   Re: Permission to speak
Reply With Quote #8

rtv, rank, statsme all those things work when you are gagged/muted/silenced. This is my first script I'm writing so I am not choosing the lazy way, but the less abstract way :p
TheReaperr is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 06-20-2012 , 19:50   Re: Permission to speak
Reply With Quote #9

Quote:
Originally Posted by TheReaperr View Post
Can I use OnPluginStart
ServerCommand("sm_silence @all") as well?
wouldn't work, you could hook it to mute the client (preferably with the mute native) when the client connects.
ReFlexPoison is offline
TheReaperr
Junior Member
Join Date: Jun 2012
Old 06-20-2012 , 21:15   Re: Permission to speak
Reply With Quote #10

But that won't mute the people already in there before I load the plugin?
TheReaperr 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 18:27.


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