Raised This Month: $ Target: $400
 0% 

cs_set_user_team bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
portocala
Member
Join Date: Jun 2010
Old 07-16-2010 , 05:39   cs_set_user_team bug
Reply With Quote #1

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!
portocala is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-16-2010 , 06:10   Re: cs_set_user_team bug
Reply With Quote #2

You tried with ExecuteHam(Ham_CS_RoundRespawn, id)? Is the best method to respawn a player.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
portocala
Member
Join Date: Jun 2010
Old 07-16-2010 , 07:02   Re: cs_set_user_team bug
Reply With Quote #3

I will try. Thanks!
portocala is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-16-2010 , 14:14   Re: cs_set_user_team bug
Reply With Quote #4

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.
__________________
I am out of order!
grimvh2 is offline
Reply


Thread Tools
Display Modes

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 07:09.


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