View Single Post
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 03-05-2015 , 10:46   Re: [CS:S] Clan Tags AFK status
Reply With Quote #8

Quote:
Originally Posted by RedSword View Post
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
Like this?
Edit: Updated!
Attached Files
File Type: sp Get Plugin or Get Source (clantag-afk.sp - 883 views - 2.2 KB)

Last edited by klausenbusk; 03-05-2015 at 11:08.
klausenbusk is offline