AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Simple Respawn (https://forums.alliedmods.net/showthread.php?t=239975)

MerreBigger 05-06-2014 13:33

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

Thanks! :D

joshknifer 05-06-2014 13:53

Re: Simple Respawn
 
You clearly didn't search...

Baws 05-06-2014 16:28

Re: Simple Respawn
 
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) }

EthicalHacker007 05-28-2014 02:08

Re: Simple Respawn
 
This is much better

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

Regards,
EH007

Kia 05-28-2014 06:20

Re: Simple Respawn
 
Quote:

Originally Posted by EthicalHacker007 (Post 2143378)
This is much better

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

Regards,
EH007

How is that related to the OP's request?

EthicalHacker007 05-28-2014 06:44

Re: Simple Respawn
 
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!

Kia 05-28-2014 07:02

Re: Simple Respawn
 
The Plugin posted by baws is enough for the OP's needs.

swapped 05-28-2014 07:03

Re: Simple Respawn
 
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)


Kia 05-28-2014 07:05

Re: Simple Respawn
 
PHP Code:

public client_putinserverid )
{
    if( !
is_user_aliveid ) )
        
respawnid );


I would wait until the player chose his team.


All times are GMT -4. The time now is 18:08.

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