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

[CS:GO] CS_SwitchTeam causes server to crash?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
peewee41
Member
Join Date: Jul 2009
Old 09-06-2012 , 23:44   [CS:GO] CS_SwitchTeam causes server to crash?
Reply With Quote #1

Hi all,

I've been trying to get bobbobagan's SwapTeam plugin working with CS:GO and it seems like the CS_SwitchTeam command crashes the server. Can anyone else confirm this and if so, is there an alternative way to execute the command? I know from CS:S, there's the ChangeClientTeam‎ command, but I don't want to kill the player.

Last edited by peewee41; 09-06-2012 at 23:44.
peewee41 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 09-06-2012 , 23:53   Re: [CS:GO] CS_SwitchTeam causes server to crash?
Reply With Quote #2

I would think its method of detecting the loading of the cstrike extension isn't the best, but I'm probably wrong. I would probably change the line 145
Code:
cstrikeExtAvail = (GetExtensionFileStatus("game.cstrike.ext") == 1);
to something like
Code:
cstrikeExtAvail = (CanTestFeatures() && GetFeatureStatus(FeatureType_Native, "CS_SwitchTeam") == FeatureStatus_Available);
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
peewee41
Member
Join Date: Jul 2009
Old 09-07-2012 , 03:54   Re: [CS:GO] CS_SwitchTeam causes server to crash?
Reply With Quote #3

Nope, still crashes the server.
peewee41 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 06:50.


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