Raised This Month: $ Target: $400
 0% 

Revive code Bug.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 07-01-2009 , 14:35   Revive code Bug.
Reply With Quote #1

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?
lolzin123 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-01-2009 , 15:13   Re: Revive code Bug.
Reply With Quote #2

PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnplr); 
__________________
hleV is offline
lolzin123
Member
Join Date: Apr 2009
Old 07-01-2009 , 16:13   Re: Revive code Bug.
Reply With Quote #3

Don't have another way to make this code? I'm trying to reduce my includes... And i don't have Ham here...
lolzin123 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-01-2009 , 16:14   Re: Revive code Bug.
Reply With Quote #4

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); 
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-01-2009 , 16:20   Re: Revive code Bug.
Reply With Quote #5

Quote:
Originally Posted by lolzin123 View Post
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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:26.


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