Raised This Month: $ Target: $400
 0% 

Simple Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 04-23-2009 , 10:29   Simple Respawn
Reply With Quote #1

I want a simple respawn plugin without weapons menu, spawn protection or etc.

When you kill you will respawned and nothing more. And a cvar to toggle (amx_respawn <1|0>)

I want to use this at knife server.
CuLLi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-23-2009 , 11:35   Re: Simple Respawn
Reply With Quote #2

Respawn where ? With or without delay ?
Arkshine is offline
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 04-23-2009 , 11:49   Re: Simple Respawn
Reply With Quote #3

without. respawn to the base (when you start, depend by map)

can you try?
CuLLi is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-23-2009 , 11:56   Re: Simple Respawn
Reply With Quote #4

Quote:
Originally Posted by CuLLi View Post
When you kill you will respawned
Do you mean "When you are killed, you are respawned"?
Code:
#include <amxmodx> #include <hamsandwich>   #define RESPAWN_DELAY 2.0   public plugin_init()         RegisterHam(Ham_Killed, "player", "PlayerKilled", 1);   public PlayerKilled(Victim)         if (!is_user_alive(Victim))                 set_task(RESPAWN_DELAY, "PlayerRespawn", Victim);   public PlayerRespawn(Client)         if (!is_user_alive(Client))         {                 remove_task(Client);                 ExecuteHamB(Ham_CS_RoundRespawn, Client);         }
__________________
hleV is offline
TwinRraZzorR
Member
Join Date: Apr 2009
Old 04-24-2009 , 23:41   Re: Simple Respawn
Reply With Quote #5

Quote:
Originally Posted by hleV View Post
Do you mean "When you are killed, you are respawned"?
Code:
PHP Code:
#include <amxmodx> 
#include <hamsandwich>   

#define RESPAWN_DELAY 2.0
 
public plugin_init()         
    
RegisterHam(Ham_Killed"player""PlayerKilled"1);
 
public 
PlayerKilled(Victim)         
    if (!
is_user_alive(Victim))                 
             
set_task(RESPAWN_DELAY"PlayerRespawn"Victim);
 
public 
PlayerRespawn(Client)         
    if (!
is_user_alive(Client))         
   {                 
            
remove_task(Client);
            
ExecuteHamB(Ham_CS_RoundRespawnClient);
    } 
Can you plz add a respawn sound (wav) ?!

Last edited by TwinRraZzorR; 04-26-2009 at 00:39.
TwinRraZzorR is offline
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 04-25-2009 , 09:39   Re: Simple Respawn
Reply With Quote #6

Quote:
Originally Posted by hleV View Post
Do you mean "When you are killed, you are respawned"?
Code:
#include <amxmodx> #include <hamsandwich>   #define RESPAWN_DELAY 2.0   public plugin_init()         RegisterHam(Ham_Killed, "player", "PlayerKilled", 1);   public PlayerKilled(Victim)         if (!is_user_alive(Victim))                 set_task(RESPAWN_DELAY, "PlayerRespawn", Victim);   public PlayerRespawn(Client)         if (!is_user_alive(Client))         {                 remove_task(Client);                 ExecuteHamB(Ham_CS_RoundRespawn, Client);         }
can you made this without delay? pls pls

cuz when i kill all members of a group in 3 seconds the round will restart.

ex: when is 2 in CT and i kill 1 CT and the second after 1-2-3 second the round will no restart.

This means the respawn is very fast after kill.

+karma of course
CuLLi is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-25-2009 , 09:51   Re: Simple Respawn
Reply With Quote #7

In fact, you would have to make player respawn before kill

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Instant Respawn"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""Player_Killed")
}

public 
Player_Killed(id)
{
    
ExecuteHamB(Ham_Spawnid)
    return 
HAM_SUPERCEDE

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 04-23-2009 , 12:57   Re: Simple Respawn
Reply With Quote #8

+karma thx

one more question. which plugin is part of this:


Quote:
* Take care, you are on a deathstreak with 4 deaths in a row.
i want to delete this stupid message

csdm?

Last edited by CuLLi; 04-23-2009 at 13:03.
CuLLi is offline
.vitor
Member
Join Date: Jan 2008
Location: Rio de Janeiro - Brazil
Old 04-23-2009 , 13:13   Re: Simple Respawn
Reply With Quote #9

miscstats.amxx ( default amxx plugin for cs )
.vitor is offline
CuLLi
BANNED
Join Date: Apr 2009
Location: Romania (piratebay) C
Old 04-23-2009 , 13:20   Re: Simple Respawn
Reply With Quote #10

Quote:
Originally Posted by .vitor View Post
miscstats.amxx ( default amxx plugin for cs )
this will swith off the rank and top also
CuLLi 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 08:55.


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