View Single Post
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 11-10-2011 , 21:41   Re: [CS:S] Afk Bomb (Fixed 08-11-2011 update; still 1.4.1)
Reply With Quote #76

I mean those extra TABs and NewLines in ConVars' section. As I said, I don't know, if it's important, but I thought it should look like this:

Code:
    g_afkBomb = CreateConVar( "afkbomb", "2", "How long will it takes before the afk drop the bomb, in seconds. 0 = disabled, 1+ = enabled. Def. 2.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 0.0 );
    g_afkBomb_addFreeze = CreateConVar( "afkbomb_freezetime", "0", "If mp_freezetime value is added to the time before bomb drop. 0 = no, 1 = yes. Def. 0.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 0.0, true, 1.0 );
    g_afkBomb_action = CreateConVar( "afkbomb_action", "1", "What to do when someone is considered afk. 1=Drop. 0=Give to random player (not recommended since it could be exploited). Def. 1.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 0.0, true, 1.0 );
    g_afkBomb_displayMsg = CreateConVar( "afkbomb_msg", "1", "Notify team when bomb is dropped (afkbomb_action=1) / Notify everyone when bomb is given to a random terrorist (afkbomb_action=0 ). 0 = no, 1 = yes. Def. 1.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 0.0, true, 1.0 );
    g_afkBomb_lateCheckNumber = CreateConVar( "afkbomb_latecheck", "2", "Number of latechecks to do before dropping the bomb. 0 = disabled. Def. 2.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 0.0 );
    g_afkBomb_lateCheckDelay = CreateConVar( "afkbomb_latecheckdelay", "5.0", "Time between 2 latechecks to drop the bomb, in seconds. Min. 1. Def. 5.", FCVAR_PLUGIN | FCVAR_NOTIFY, true, 1.0 );

Last edited by GrO; 11-10-2011 at 21:41.
GrO is offline