Raised This Month: $51 Target: $400
 12% 

Counting players ingame (Left 4 Dead voting plugin inside)


Post New Thread Reply   
 
Thread Tools Display Modes
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 04-23-2009 , 22:41   Re: Counting players ingame (Left 4 Dead voting plugin inside)
Reply With Quote #11

Lamer is correct because by putting IsFakeClient(i) to the right, it will never get evaluated due to short circuiting when the client isn't connected.

However, using IsClientConnected(i) && IsClientInGame(i) is redundant because IsClientInGame() will not error on an unconnected index.
Fyren is offline
wgooch
Member
Join Date: Dec 2008
Old 04-23-2009 , 22:49   Re: Counting players ingame (Left 4 Dead voting plugin inside)
Reply With Quote #12

So remove is client connected?
wgooch is offline
SirLamer
Senior Member
Join Date: Oct 2008
Old 04-25-2009 , 22:03   Re: Counting players ingame (Left 4 Dead voting plugin inside)
Reply With Quote #13

For the case of counting the number of available voters, I would say yes.
__________________
Visit TEAM CHEESUS, a TF2 community with our own brand of injected shenanigans, for added flavor.

Plugins: Jukebox for Source
SirLamer is offline
madcap
Senior Member
Join Date: Feb 2009
Old 04-29-2009 , 10:54   Re: Counting players ingame (Left 4 Dead voting plugin inside)
Reply With Quote #14

wgooch, the custom vote functionality you're trying to create already exists in Vote Manager 2.

If you're just doing this for the experience/education then carry on.
madcap is offline
wgooch
Member
Join Date: Dec 2008
Old 04-30-2009 , 18:15   Re: Counting players ingame (Left 4 Dead voting plugin inside)
Reply With Quote #15

Wow, never noticed that plugin anywhere, thanks!
wgooch is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode