Raised This Month: $51 Target: $400
 12% 

Simple Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MerreBigger
Senior Member
Join Date: Nov 2012
Location: Belgium
Old 05-06-2014 , 13:33   Simple Respawn
Reply With Quote #1

Hello guys!
so basicly, i just need a plugin that respawns you if you die/connect
spawn to the base, (depends of map)

Thanks!
__________________
___________________________________________


MerreBigger is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 05-06-2014 , 13:53   Re: Simple Respawn
Reply With Quote #2

You clearly didn't search...
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Baws
Veteran Member
Join Date: Oct 2012
Old 05-06-2014 , 16:28   Re: Simple Respawn
Reply With Quote #3

Here:
Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> #define VERSION "0.0.1" #define PLUGIN "Death Instant Respawn" public plugin_init() {     register_plugin(PLUGIN, VERSION, "ConnorMcLeod")     RegisterHam(Ham_Killed, "player", "Ham_CBasePlayer_Killed_Post", true) } public Ham_CBasePlayer_Killed_Post( id ) {     set_pev(id, pev_deadflag, DEAD_RESPAWNABLE) }
__________________
Like my clean plugins and work?
Baws is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 05-28-2014 , 02:08   Re: Simple Respawn
Reply With Quote #4

This is much better

https://forums.alliedmods.net/showthread.php?t=67801

Regards,
EH007
__________________

Last edited by EthicalHacker007; 05-28-2014 at 06:42. Reason: don't know some kind of magic link replacer
EthicalHacker007 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-28-2014 , 06:20   Re: Simple Respawn
Reply With Quote #5

Quote:
Originally Posted by EthicalHacker007 View Post
This is much better

https://forums.alliedmods.net/showthread.php?t=6780

Regards,
EH007
How is that related to the OP's request?
__________________
Kia is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 05-28-2014 , 06:44   Re: Simple Respawn
Reply With Quote #6

Thanks Kia

Fixed. Don't know how did that link got changed. I didn't even read that thread. Somethings strange in my UC Browser!
__________________
EthicalHacker007 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-28-2014 , 07:02   Re: Simple Respawn
Reply With Quote #7

The Plugin posted by baws is enough for the OP's needs.
__________________
Kia is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-28-2014 , 07:03   Re: Simple Respawn
Reply With Quote #8

try this:

contain auto respawn when you die, when you connect on the server also an /respawn command.

Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.1"
#define PLUGIN "Death Instant Respawn"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, "Ham Ham Ha")

    register_event( "DeathMsg", "hook_die", "a" );

    register_clcmd( "say /respawn" , "hk_respawn" );
    register_clcmd( "say_team /respawn", "hk_respawn" );
}

public hk_respawn( id ){
    if( !is_user_alive( id ) )
        respawn( id );
}

public client_putinserver( id )
{
    if( !is_user_alive( id ) )
        respawn( id );
}

public hook_die( )
{
    new vid = read_data( 2 )

    if( !is_user_alive( vid ) )
    {
        respawn( vid );
    }
}

stock respawn( id )set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)

Last edited by swapped; 05-28-2014 at 07:04.
swapped is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-28-2014 , 07:05   Re: Simple Respawn
Reply With Quote #9

PHP Code:
public client_putinserverid )
{
    if( !
is_user_aliveid ) )
        
respawnid );

I would wait until the player chose his team.
__________________
Kia is offline
Old 05-28-2014, 11:36
joshknifer
This message has been deleted by YamiKaitou. Reason: unneeded comments
Old 05-28-2014, 11:53
EthicalHacker007
This message has been deleted by YamiKaitou. Reason: unneeded comments
Old 05-28-2014, 11:57
joshknifer
This message has been deleted by YamiKaitou. Reason: unneeded comments
Old 05-28-2014, 12:06
EthicalHacker007
This message has been deleted by YamiKaitou. Reason: unneeded comments
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 11:50.


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