View Single Post
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-04-2015 , 19:59   Re: [CS:S] Clan Tags AFK status
Reply With Quote #7

Hey for approval you'll have to change the following :
  • You should use AddCommandListener rather than RegConsoleCmd on "say" and "say_team". You might want to read around on the forum the distinction between both.
  • Since sm_clafk_time is local to your plugin, you shouldn't use FindConVar with it (notably it may be executed a lot of time per frame).
  • Remove FCVAR_REPLICATED
  • Remove your dead code L22-23, or add the appropriate parts/functions and a possible comment (if it's a "hidden" functionality for you)
  • You're using both CloseHandle and KillTimer. Be consistent.

I see that you're using timers without userId but since you're killing them OnClientDisconnect it is fine by me.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline