Raised This Month: $ Target: $400
 0% 

ExecuteHamB(Ham_CS_RoundRespawn, id) bug?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-09-2013 , 15:29   ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
Reply With Quote #1

Haj;

I was using Ham to respawn players, and I found out that it doesnt respawn them always.
Sometimes the player dont get respawned

ExecuteHamB(Ham_CS_RoundRespawn, id)


Any ofset I gotta put before it, to get it working or anything?


Thanks.
__________________
Retired.
Xalus is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 01-09-2013 , 15:58   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
Reply With Quote #2

There are times when player can't be spawned (for example when choosing model). You can probably detect it with this (I haven't tested it myself, it was posted here):
PHP Code:
const m_iJoinedState 121
const m_iMenu 205

const MENU_CHOOSEAPPEARANCE 

if( !get_pdata_int(idm_iJoinedState) && get_pdata_int(idm_iMenu) != MENU_CHOOSEAPPEARANCE ){
    
//can spawn
}else{
    
//can not spawn

__________________
Impossible is Nothing
Sylwester is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-09-2013 , 16:03   Re: ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
Reply With Quote #3

Hm k,

Thanks
__________________
Retired.
Xalus 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 13:46.


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