Raised This Month: $ Target: $400
 0% 

ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-26-2017 , 12:52   ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #1

PHP Code:
    ExecuteHamB(Ham_CS_RoundRespawnid)
    
set_task(0.1"RepeatRespawn"id 51233);
    
//...
}
public 
RepeatRespawn(id)
    
ExecuteHamB(Ham_CS_RoundRespawnid 51233
Sometimes when player will respawn, he will spawn at the info_player_start, but he don't have HUD, and weapon.



And sometimes it is working great. I tried to use once executeham too.
Or there is better way to respawn player?

edit:
amxx version
Quote:
AMX Mod X 1.8.3-dev+5095
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko, Felix "SniperBeamer" Geyer
Jonny "Got His Gun" Bergstrom, Lukasz "SidLuke" Wlasinski
Christian "Basic-Master" Hammacher, Borja "faluco" Ferrer
Scott "DS" Ehlert
Compiled: Feb 23 2017, 04:28:22
URL:http://www.amxmodx.org/

Last edited by grs4; 02-26-2017 at 13:11.
grs4 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-26-2017 , 13:07   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #2

That's definitely not Hamsandwich's problem.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-26-2017 , 13:10   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #3

Is there a reason to respawn him twice?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-26-2017 , 13:27   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Is there a reason to respawn him twice?
I just checked twice respawn. But even one time is not working propertly.
grs4 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-26-2017 , 13:33   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #5

That's because you have to wait for him to join a team or force him to do it first.
Best done via engclient_cmd(iID, "jointeam 5; joinclass 5").
Otherwise, he's still (partially) a spectator. That's why he has no HUD.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-26-2017 , 14:47   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #6

Quote:
Originally Posted by georgik57 View Post
That's because you have to wait for him to join a team or force him to do it first.
Best done via engclient_cmd(iID, "jointeam 5; joinclass 5").
Otherwise, he's still (partially) a spectator. That's why he has no HUD.
I know with "you have to wait for him to join a team or force him to do it first." .

I setted team first with
PHP Code:
cs_set_user_team(idCS_TEAM_TCS_DONTCHANGE); 
and every 5 seconds one task is respawning all not alive players.

Last edited by grs4; 02-26-2017 at 14:47.
grs4 is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 02-27-2017 , 16:10   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) is not working propertly
Reply With Quote #7

the problem is that you use cs_set_user_team native
cs_set_user_team native should only be used after the player selected a team, otherwise it will bug out...

PHP Code:
engclient_cmd(iID"jointeam 5; joinclass 5"
__________________

Last edited by Depresie; 02-27-2017 at 16:10.
Depresie 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 21:02.


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