View Single Post
cgirerd
Junior Member
Join Date: Jul 2021
Old 07-27-2021 , 02:14   Re: Switch team without dying
Reply With Quote #7

Quote:
Originally Posted by Shadows Adi View Post
http://www.amxmodx.org/api/cstrike/cs_set_user_team
PHP Code:
Sets the client's team without killing the player, and sets the client model. 
What's wrong with cs_set_user_team() ?
When using this option on a bot, he still behaves as if he was part of the original team, and not the new one, till he is killed. For a real player, he will think that he is in the new team, but won't be able to do damages to his opponents, only to his teammates. He needs to die for things to work as expected.

Quote:
Originally Posted by +ARUKARI- View Post
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid); 
Try this, You can respawn without killing.
This works well, it does respawns a player without killing him, which is great. So thank you for that . However, some items bought in custom shop like double damage etc... seem to be lost during transfer. Not sure how to restore his complete profile...
cgirerd is offline