Updated rockthevote to use new OnClientConnected forward (
bug 3311)
1.1 --- a/plugins/rockthevote.sp Thu Oct 16 10:55:42 2008 +1300
1.2 +++ b/plugins/rockthevote.sp Sun Oct 19 16:18:22 2008 +1300
1.3 @@ -112,22 +112,22 @@
1.4 CreateTimer(GetConVarFloat(g_Cvar_InitialDelay), Timer_DelayRTV, _, TIMER_FLAG_NO_MAPCHANGE);
1.5 }
1.6
1.7 -public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
1.8 +public OnClientConnected(client)
1.9 {
1.10 if(IsFakeClient(client))
1.11 - return true;
1.12 + return;
1.13
1.14 g_Voted[client] = false;
1.15
1.16 g_Voters++;
1.17 g_VotesNeeded = RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));
1.18
1.19 - return true;
1.20 + return;
1.21 }
1.22
1.23 public OnClientDisconnect(client)
1.24 {
1.25 - if(!g_CanRTV || IsFakeClient(client))
1.26 + if(IsFakeClient(client))
1.27 return;
1.28
1.29 if(g_Voted[client])
1.30 @@ -139,6 +139,11 @@
1.31
1.32 g_VotesNeeded = RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));
1.33
1.34 + if (!g_CanRTV)
1.35 + {
1.36 + return;
1.37 + }
1.38 +
1.39 if (g_Votes &&
1.40 g_Voters &&
1.41 g_Votes >= g_VotesNeeded &&