AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Transfer to spec (https://forums.alliedmods.net/showthread.php?t=221925)

connoisseur 07-28-2013 03:52

Transfer to spec
 
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?

Blizzard_87 07-28-2013 04:05

Re: Transfer to spec
 
use
Code:
 user_kill( id, 1 );

before you transfer them

devWaleed 07-28-2013 05:12

Re: Transfer to spec
 
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. 



All times are GMT -4. The time now is 15:55.

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