Raised This Month: $32 Target: $400
 8% 

Is possible to transfer player from team to other without being killed at spawn?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-22-2018 , 01:17   Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #1

Hello, I'd like to ask if it's possible to transfer player to another team on the spawn hamsandwich without being killed in a process. If yes, leave me a message and would be glad if you helped me.
LemoNSK is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 07-22-2018 , 01:26   Re: Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #2

Ever seen my Confusing Fun Mod?
If not, then check and you will find the answer.
__________________
CrAzY MaN is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-22-2018 , 02:55   Re: Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #3

just use cs_set_user_team(playerid, team)
but I suggest to set_task for 0.1 ~ 0.2 because it may cost some trouble.
if you want them to spawn at the same side with their team then use ExecuteHamB(Ham_Spawn, playerid) after that.
__________________
My plugin:

Last edited by Celena Luna; 07-22-2018 at 02:57.
Celena Luna is offline
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-22-2018 , 04:25   Re: Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #4

Quote:
Originally Posted by Celena Luna View Post
just use cs_set_user_team(playerid, team)
but I suggest to set_task for 0.1 ~ 0.2 because it may cost some trouble.
if you want them to spawn at the same side with their team then use ExecuteHamB(Ham_Spawn, playerid) after that.
Yeah, already done that..
LemoNSK is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-22-2018 , 05:30   Re: Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #5

Quote:
Originally Posted by LemoNSK View Post
Yeah, already done that..
so what do you mean? cs_set_user_team won't kill player while transfering. Isn't that what you want?
Don't believe me? Read this API
https://www.amxmodx.org/api/cstrike/cs_set_user_team
__________________
My plugin:

Last edited by Celena Luna; 07-22-2018 at 05:32.
Celena Luna is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-22-2018 , 09:38   Re: Is possible to transfer player from team to other without being killed at spawn?
Reply With Quote #6

Code:
ExecuteHamB(Ham_Spawn, playerid)



Code:
ExecuteHamB(Ham_CS_RoundRespawn, playerid)
__________________








CrazY. 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 20:34.


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