AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ExecuteHamB(Ham_CS_RoundRespawn, id) bug? (https://forums.alliedmods.net/showthread.php?t=205335)

Xalus 01-09-2013 15:29

ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
 
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.

Sylwester 01-09-2013 15:58

Re: ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
 
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



Xalus 01-09-2013 16:03

Re: ExecuteHamB(Ham_CS_RoundRespawn, id) bug?
 
Hm k,

Thanks


All times are GMT -4. The time now is 13:46.

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