Raised This Month: $ Target: $400
 0% 

Clan Vs. All [CS + DOD]


Post New Thread Reply   
 
Thread Tools Display Modes
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-08-2006 , 20:17   Re: Clan Vs. All [CS + DOD]
Reply With Quote #41

New version is up. My old version was horrible sorry guys. The new version should work 110% though.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-08-2006 , 21:00   Re: Clan Vs. All [CS + DOD]
Reply With Quote #42

you shouldn't use i <= maxplayers, especially in a forward like client_PreThink. Use get_players instead.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-08-2006 , 21:06   Re: Clan Vs. All [CS + DOD]
Reply With Quote #43

There is no client_PreThink...
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-08-2006 , 21:15   Re: Clan Vs. All [CS + DOD]
Reply With Quote #44

Quote:
Originally Posted by GHW_Chronic
There is no client_PreThink...
Your function names make no sense then, why did you name it prethink when it's called by a set_task? It doesn't even achieve the same functionality - client_PreThink is called every frame just before physics rendering on a client. This is called every 0.1 seconds no matter what.

Either way, you shouldn't use that method. get_players without any flags never has any problems, so use it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-08-2006 , 21:55   Re: Clan Vs. All [CS + DOD]
Reply With Quote #45

Comprendo
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-08-2006 , 22:32   Re: Clan Vs. All [CS + DOD]
Reply With Quote #46

although it's a very minor optimization, you don't have to check is_user_connected with get_players.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
ScubaSteve3465
Senior Member
Join Date: Dec 2004
Old 07-08-2006 , 22:36   Re: Clan Vs. All [CS + DOD]
Reply With Quote #47

did u fix the bug where if there were to many players u would have enemys spawning near the clan team
__________________
ScubaSteve3465 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-08-2006 , 22:38   Re: Clan Vs. All [CS + DOD]
Reply With Quote #48

@Hawk: Yes, forgot to take that out. Oversight

And yes, all bugs are fixed to the extent of my knowledge.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
ScubaSteve3465
Senior Member
Join Date: Dec 2004
Old 07-09-2006 , 00:57   Re: Clan Vs. All [CS + DOD]
Reply With Quote #49

good job man thx
__________________
ScubaSteve3465 is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 08-02-2006 , 19:50   Re: Clan Vs. All [CS + DOD]
Reply With Quote #50

I am not getting any error message with your new version, However, it seems to be causing svc_bad errors. I can say this because Yesterday I had the old clanvsall and the same plugins otherwise, while today I have the same plugins but new clanvsall and it's giving svc_bad errors to players like girl scouts selling cookies.

I decided to read over and revise your code a little GHW_Chronic.

I liked:
The use of static variables
The efficiency/optimization of plugin
The concept

I didn't like and thus changed:
The name of function: prethink() now checkTeams()
No comments (added some comments)
The problematic get_players(Player,num)
- Reason: If HLTV were connected, HLTV would be on a team :-D
Therefore made it get_players(Player,num,"h")

Hopefully my attached version is a little more optimized. Good job GHW_Chronic. ++karma

Slmclarengt
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Clan_vs_All-CS.sma - 701 views - 2.2 KB)
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt 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:14.


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