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

[PLUGIN] SpawnProtect


Post New Thread Reply   
 
Thread Tools Display Modes
API
Veteran Member
Join Date: May 2006
Old 04-25-2007 , 23:43   Re: [PLUGIN] SpawnProtect
Reply With Quote #21

Heres the fixed version FM, http://ampaste.net/8956
Note the use of GetClientCount instead of GetMaxClients, SourceMod stops execution when you use an invalid index, thus the GetTeam errors.
API is offline
Send a message via AIM to API
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-26-2007 , 11:55   Re: [PLUGIN] SpawnProtect
Reply With Quote #22

I've found some other problems in the plugin for some reason...I need to look into this whole thing...
FlyingMongoose is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-26-2007 , 16:06   Re: [PLUGIN] SpawnProtect
Reply With Quote #23

You need to use GetMaxClients(), becase the entity index may fall outside of the range that GetClientCount() would give you. You just need to check if it is a valid client by using IsClientConnected() or something similar.
sslice is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-26-2007 , 16:50   Re: [PLUGIN] SpawnProtect
Reply With Quote #24

it seems to be working as is anyway sslice...with pimpinjuice's change

anyway: Updated, check first post for changelog
FlyingMongoose is offline
API
Veteran Member
Join Date: May 2006
Old 04-26-2007 , 18:14   Re: [PLUGIN] SpawnProtect
Reply With Quote #25

Ahh!! sslice was right, you need to do GetMaxClients and do IsClientConnected because if index 1 disconnects it wont fill until another joins.
API is offline
Send a message via AIM to API
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-26-2007 , 18:19   Re: [PLUGIN] SpawnProtect
Reply With Quote #26

that actually explains a few bugs I thought were irrelevent. will be updated momentarily
FlyingMongoose is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 04-29-2007 , 02:51   Re: [PLUGIN] SpawnProtect
Reply With Quote #27

Another small update to this little ditty, just made sure the server wasn't trying to handle itself (which it did try sometimes), this should fix the "Player 0 index is invalid" error.
FlyingMongoose is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 05-19-2007 , 19:46   Re: [PLUGIN] SpawnProtect
Reply With Quote #28

Alright guys, I haven't updated this in a long while, the reason being that I've been working on a huge update to it. I'm no longer going to be supporting this as SpawnProtect, I've moved it into another project called ATAC (advanced team attack control)

Here's a feature list -
http://gameconnect.info/modules.php?...ceplugins#atac

ATAC Provides Spawn Protection, team attack control, team kill control and much much more.

Trust me...you'll love it ;).
FlyingMongoose is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-09-2007 , 00:22   Re: [PLUGIN] SpawnProtect
Reply With Quote #29

Thread lock request (I no longer support this plugin as it's a feature in ATAC)
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
DeaD_EyE82
AlliedModders Donor
Join Date: Jan 2006
Location: Germany
Old 06-09-2007 , 16:14   Re: [PLUGIN] SpawnProtect
Reply With Quote #30

My Client crashes when i attack a Teamate (bot) in the protecttime.
I have attached two "mdmp" files which where generated from steam.
Attached Files
File Type: gz counter-strike source.tar.gz (178.5 KB, 60 views)
DeaD_EyE82 is offline
Send a message via ICQ to DeaD_EyE82
Reply


Thread Tools
Display Modes

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 22:06.


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