AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_set_user_team bug (https://forums.alliedmods.net/showthread.php?t=132553)

portocala 07-16-2010 05:39

cs_set_user_team bug
 
If the player is SPECTATOR and you try to change his team to CT or T with cs_set_user_team, the hud (crosshair, health, armor, money, etc) dissapears sometimes.

Is there any solution for this ?

I read http://www.amxmodx.org/funcwiki.php?go=func&id=127 and I tried all the ways to spawn the player (double spawn, spawn with dllfunc, double spawn with delay, etc) but the bug still exists.

Thank you!

Alucard^ 07-16-2010 06:10

Re: cs_set_user_team bug
 
You tried with ExecuteHam(Ham_CS_RoundRespawn, id)? Is the best method to respawn a player.

portocala 07-16-2010 07:02

Re: cs_set_user_team bug
 
I will try. Thanks!

grimvh2 07-16-2010 14:14

Re: cs_set_user_team bug
 
I dont think it has anything todo with spawning, but with changing there team from "Nothing Selected" to a team using cstrike module. Instead of using cs_set_user_team() try todo somthing like ven hes autojoin plugin http://forums.alliedmods.net/showthread.php?p=438587. hes using engclient_cmd() to force them to join a team.
So just pay attention that you give him a clean join to a team.


All times are GMT -4. The time now is 07:09.

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