Raised This Month: $ Target: $400
 0% 

[L4D] Kick All Special Infected


Post New Thread Reply   
 
Thread Tools Display Modes
Bigbuck
Senior Member
Join Date: Jul 2009
Old 07-13-2009 , 19:11   Re: [L4D] Kick All Special Infected
Reply With Quote #11

Thanks for all the help, it seems to be working, well at least most of the time. Every once in awhile it doesn't spawn the tank but when I spawn one through the admin it works so not really a big deal.
Bigbuck is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 07-14-2009 , 21:35   Re: [L4D] Kick All Special Infected
Reply With Quote #12

This doesn't really seem to affect it, but I would like to know why it does this. This is coming from the tank code.

Code:
L 07/14/2009 - 20:22:14: [SM] Native "GetClientModel" reported: Client 1 is not in game
L 07/14/2009 - 20:22:14: [SM] Displaying call stack trace for plugin "L4D_SuperCoop.smx":
L 07/14/2009 - 20:22:15: [SM]   [0]  Line 508, /home/groups/sourcemod/upload_tmp/phpQJcWjD.sp::TankHasJoined()
L 07/14/2009 - 20:22:15: [SM]   [1]  Line 215, /home/groups/sourcemod/upload_tmp/phpQJcWjD.sp::OnClientConnect()
Bigbuck is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 07-15-2009 , 03:44   Re: [L4D] Kick All Special Infected
Reply With Quote #13

As it tells you. A Client it tried to read is not ingame, which means he was kicked already.
AtomicStryker is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 07-15-2009 , 13:04   Re: [L4D] Kick All Special Infected
Reply With Quote #14

I have tried putting this in to make sure they are connected before running it but it didn't seem to affect it at all:


Code:
 if (IsClientConnected(i))
{
   //code here
}
I will add the check to make sure the client is in the game and on a team and see if that helps.
Bigbuck is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-15-2009 , 13:22   Re: [L4D] Kick All Special Infected
Reply With Quote #15

IsClientConnected is quite useless function. Use IsClientInGame.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
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 15:11.


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