AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is possible to transfer player from team to other without being killed at spawn? (https://forums.alliedmods.net/showthread.php?t=309334)

LemoNSK 07-22-2018 01:17

Is possible to transfer player from team to other without being killed at spawn?
 
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.

CrAzY MaN 07-22-2018 01:26

Re: Is possible to transfer player from team to other without being killed at spawn?
 
Ever seen my Confusing Fun Mod?
If not, then check and you will find the answer.

Celena Luna 07-22-2018 02:55

Re: Is possible to transfer player from team to other without being killed at spawn?
 
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.

LemoNSK 07-22-2018 04:25

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

Originally Posted by Celena Luna (Post 2605390)
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..

Celena Luna 07-22-2018 05:30

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

Originally Posted by LemoNSK (Post 2605396)
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

CrazY. 07-22-2018 09:38

Re: Is possible to transfer player from team to other without being killed at spawn?
 
Code:
ExecuteHamB(Ham_Spawn, playerid)

:arrow:

Code:
ExecuteHamB(Ham_CS_RoundRespawn, playerid)


All times are GMT -4. The time now is 06:57.

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