Raised This Month: $ Target: $400
 0% 

Transfer to spec


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
connoisseur
Senior Member
Join Date: Jan 2012
Old 07-28-2013 , 03:52   Transfer to spec
Reply With Quote #1

If a player is in CT or T and I use
Code:
cs_set_user_team ( id, CS_TEAM_SPECTATOR )
The player's team changes, but his player model is still alive and he can still play in the map.
Any solution?
connoisseur is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 07-28-2013 , 04:05   Re: Transfer to spec
Reply With Quote #2

use
Code:
 user_kill( id, 1 );

before you transfer them
__________________
Blizzard_87 is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 07-28-2013 , 05:12   Re: Transfer to spec
Reply With Quote #3

PHP Code:
cs_set_user_team(idCS_TEAM_SPECTATOR);    //Set team
user_kill(id1); // Kill user
cs_set_user_deaths(idget_user_deaths(id) - 1);     // user_kill adds 1 to deaths, recalc it if you want. 
devWaleed is offline
Send a message via Skype™ to devWaleed
Old 07-28-2013, 05:44
Blizzard_87
This message has been deleted by Blizzard_87. Reason: nvm
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:55.


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