AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Revive code Bug. (https://forums.alliedmods.net/showthread.php?t=96170)

lolzin123 07-01-2009 14:35

Revive code Bug.
 
I'm using this code:
PHP Code:

fm_cs_user_spawn(plr);
set_pev(plrpev_deadflagDEAD_RESPAWNABLE);
dllfunc(DLLFunc_Spawnplr);
set_pev(plrpev_iuser10); 

Some times, this code bug, and i have to use again to revive...
ANY IDEA?

hleV 07-01-2009 15:13

Re: Revive code Bug.
 
PHP Code:

ExecuteHamB(Ham_CS_RoundRespawnplr); 


lolzin123 07-01-2009 16:13

Re: Revive code Bug.
 
Don't have another way to make this code? I'm trying to reduce my includes... And i don't have Ham here...

Alka 07-01-2009 16:14

Re: Revive code Bug.
 
This works fine.I used this on some respawn plugin

PHP Code:

    if(!is_user_alive(id))
    {
        
set_pev(idpev_deadflagDEAD_RESPAWNABLE);
        
dllfunc(DLLFunc_Thinkid);
    }
    else
        
dllfunc(DLLFunc_Spawnid); 


Exolent[jNr] 07-01-2009 16:20

Re: Revive code Bug.
 
Quote:

Originally Posted by lolzin123 (Post 861909)
Don't have another way to make this code? I'm trying to reduce my includes... And i don't have Ham here...

Reducing includes doesn't matter.
Include the module if it is used.

Also, you should update your AMXX to the latest because Ham has a lot to offer.


All times are GMT -4. The time now is 15:26.

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