View Single Post
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 02-21-2011 , 08:50   Re: [L4D2] Vocalize Fatigue 2
Reply With Quote #6

Quote:
Originally Posted by AtomicStryker View Post
Wow, this is ... incredibly elaborate for what it actually does. Have fun bug hunting, lol.


I spotted some odd things in the code.. like:

PHP Code:
public Action:_Vocalize_OnVocalize_Command(client, const String:command[], argc)
{
    if (
client == CLIENT_INDEX_SERVER || IsFakeClient(client)) return Plugin_Continue;

    if (!
IsClientInGame(client)) return Plugin_Handled
Why check IsClientIngame after IsFakeClient? The first would error out already. Also, you block local servers from running this plugin. Do dedicated servers vocalize, at all?
Yeah... nice catch

No the server doesn't vocalize, I don't block the command through. Even if there is a fool to do "rcon vocalize", I rather be safe than sorry.
Mr. Zero is offline