Raised This Month: $ Target: $400
 0% 

Spectator Bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
driger38
Senior Member
Join Date: Apr 2011
Old 02-09-2016 , 09:11   Spectator Bug
Reply With Quote #1

Player is alive in either CT or T. He chooses to GO SPECTATOR, player gets to be joined spectator team. BUT he stays alive as in spec team (can kill CT/T, can be killed also).
the line that should kill him in plugin is :

Code:
		case 4:
		{
			if( is_user_alive( id ) )
			{
				client_cmd( id, "kill" )
				cs_set_user_deaths( id, cs_get_user_deaths( id ) - 1 )
				fm_set_user_frags( id, get_user_frags( id ) + 1 )
			}
			cs_set_user_team( id, CS_TEAM_SPECTATOR, CS_DONTCHANGE )
		}
	}
The part where he is supposed to DIE while going spec team wont function, Any help pls?
driger38 is offline
 



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 09:21.


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