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

Stuck at cs_set_user_team


Post New Thread Reply   
 
Thread Tools Display Modes
sake
Senior Member
Join Date: Jul 2011
Old 07-24-2011 , 10:52   Re: Stuck at cs_set_user_team
Reply With Quote #11

PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Spawn,"player","playerSpawned",1)
}

public 
playerSpawned(id)
{
   
//your Code here, e.g killing (maybe with short delay set_task)

Hope it helps. Didn't test it but I think it's what you are searching for.
sake is offline
Honors
Member
Join Date: Jul 2011
Old 07-24-2011 , 11:05   Re: Stuck at cs_set_user_team
Reply With Quote #12

I forgot to set the 'e' flag. Edited.
Honors is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 11:07   Re: Stuck at cs_set_user_team
Reply With Quote #13

Whats supposed to be in playerSpawned function..? All I want is that when client is being set at a team via cs_set_user_team() he won't be stuck/bugged next round he spawns.....

Ill explain the situation again to whoever did not understand my issue. I have a WORKING code of getting an ID, seeing which team has less members, and cs_set_user_team'ing that id to the team with the less members. The problem is (INGAME) that after the ID gets transferred to the team that has the less members, when the next round starts HE'S STUCK, he has no HP/AMMO/ARMOR bar below and keep spawning in random places of the map, I need someone to help me make cs_set_user_team work properly without bugging the player for the rest of the game.

Last edited by Diegorkable; 07-24-2011 at 12:13.
Diegorkable is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-24-2011 , 12:33   Re: Stuck at cs_set_user_team
Reply With Quote #14

Try killing the player before you set his team
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Honors
Member
Join Date: Jul 2011
Old 07-24-2011 , 12:36   Re: Stuck at cs_set_user_team
Reply With Quote #15

Use the native user_kill( )
Honors is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 16:00   Re: Stuck at cs_set_user_team
Reply With Quote #16

But he's moved from Spectator, so how could I possible kill him?? and I tried user_kill it didnt work on him, he was bugged real hard. hasn't anyone experienced a plugin that contained cs_set_user_team? it's the only bug left to complete my mod D:

Last edited by Diegorkable; 07-24-2011 at 16:51.
Diegorkable is offline
Honors
Member
Join Date: Jul 2011
Old 07-24-2011 , 16:59   Re: Stuck at cs_set_user_team
Reply With Quote #17

If he is moved from spectator, cs_set_user_team( ) should works fine.
Honors is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 17:01   Re: Stuck at cs_set_user_team
Reply With Quote #18

Fact it doesnt, it bugs him really hard.
Diegorkable is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-24-2011 , 17:11   Re: Stuck at cs_set_user_team
Reply With Quote #19

Hey guys, the public works on a player right after he connects the server, before he even picked a team, so i think he's bugged since he hasnt fully logged in yet or something, i know you get bugged like that when you do amx_Revive before picking a team, or amx_team, anyone know what to do then to transfer him team before he needs even to pick a team?
Diegorkable is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-24-2011 , 19:36   Re: Stuck at cs_set_user_team
Reply With Quote #20

Search for other plugins that do what you're trying to accomplish. Look at their method of getting the job done and change it to your needs.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 00:27.


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