Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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 #2

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 #3

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
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 12:39.


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