sorry for not getting back stupid university work! (*shakes fist*). anyways, yer changing the position of where it turns all talk on does fix it... sometimes, I've played some games where it works everytime you pause, some games where half the games all talk works, and some games not at all... it's really wierd! I was thinking maybe. Turn all talk on set like a 2 - 3 second timer, then pause on the timer giving the server time to update, but this would mean alltalk would turn on like a second before pausing.
As for server flooding this is easy to fix, you can either add it to the plugin or (like me) change the flood cvar globally so noone ever floods the chat.
The chat flod cvar is located in cfg/sourcemod/sourcemod.cfg and looks something like this...
Quote:
// Specifies the amount of time that is allowed between chat messages. This
// includes the say and say_team commands. If a client sends a message faster
// than this time, they receive a flood token. When the client has accumulated
// 3 or more tokens, a warning message is shown instead of the chat message.
// --
// Requires: antiflood.smx
// Default: 0.75
sm_flood_time 0.75
|
So just either hook it in the plugin and set it to 0.01 or change that value to 0.01 and people can never ever flood.
p.s.
-999- nice work on getting the join and leave timers in, I've been playing with them but there always a little buggy
Update
Ok I still havnt got all talk 100% working, but I've added flood changing so it now lowers it to stop the annoying "you are flooding the chat" message.
and also I added another little hook to help with -999-'s joining code, basically his code worked perfect but left you in spectator, I simply hooked the player_team command so it puts you in your correct team fully loaded
I'll hopefully look into alltalk sometime later today.
EDIT 1:
Just relised, I added another cvar, which turns chat flooding on or off, you'll need to delete the l4d2pause.cfg in your cfg/sourcemod/ folder for it to work, by default its set to be on.
FINAL UPDATE HONEST:
Ok, I've added a 1 second timer between the time it turns alltalk on and the time it pauses, I've done a quick test in versus with one other person and it worked YEY
so I've reuploaded the source code in this post.
i've also included the .cfg file so you can just replace it and have everything set up
Yours
N3wton