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

Respawn plugin


  
 
 
Thread Tools Display Modes
Author Message
shb
Junior Member
Join Date: Apr 2012
Old 04-21-2012 , 16:31   Respawn plugin
#1

Hola buenas, ando buscando un respawn simple, pero no he encontrado niuno que valga la pena.

el respawn tendria que tener:

un comando para activar y desactivar.
un respawn_timer.
y que fuera capaz de revivir tambien a los que entraron despues de q la ronda comenzara. (como sucede en el respawn forever que no los revive).

y que no te reviva como spec. ya que hace poco baje un code de respawn en el que a los spectadores los revivia. (algo bien raro o.o)

bueno eso seria. no fuera muxo pedir xD

eso xao.
shb is offline
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 04-21-2012 , 16:35   Re: Respawn plugin
#2

No vas a conseguir el plugin asi de facil, busca.

PD: No te van a hacer el code, pensa.. hacelo.. y si tenes errores.. postialos.
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
shb
Junior Member
Join Date: Apr 2012
Old 04-21-2012 , 18:30   Re: Respawn plugin
#3

Code:
#include <amxmodx>
#include <fun>

public TeamSelect(id)
{
    if (get_cvar_num("sv_respawn") == 1)   {
        new sId[2]
        sId[0] = id
        set_task(5.0,"respawn",0,sId,2)
    }
    return PLUGIN_CONTINUE
}

public death_msg() 
{    
    if (get_cvar_num("sv_respawn") == 1)   { 
        new vIndex = read_data(2) 
        new svIndex[2]
        svIndex[0] = vIndex
        set_task(0.5,"respawn",0,svIndex,2) 
    } 
    return PLUGIN_CONTINUE 
} 

public respawn(svIndex[]) 
{ 
    new vIndex = svIndex[0] 
    if(get_user_team(vIndex) == 3 || is_user_alive(vIndex)) 
        return PLUGIN_CONTINUE 
    spawn(vIndex) 
    
    return PLUGIN_CONTINUE    
} 

public plugin_init() 
{ 
       register_plugin("respawn","1.0","Lawer") 
    register_event("DeathMsg","death_msg","a") 
    register_event("ShowMenu","TeamSelect","b","4&Team_Select")
    register_event("VGUIMenu","TeamSelect","b","1=2")
    register_cvar("sv_respawn","1") 
    
    return PLUGIN_CONTINUE 
}
encontre ese code, lo unico malo que tiene que te revive cuando no seleccionas team. por lo q aveces cuando hay locos pegaos(team select), los otros se los ponen a filetiar(t/ct) y pareciera que estuvieran matando spects :SS
shb is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-21-2012 , 19:35   Re: Respawn plugin
#4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

#define is_valid_user(%1)    (1 <= %1 <= g_MaxPlayers)

const TASK 2707 
const TEAM_SPECTATOR 3

new g_MaxPlayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("joinclass""cmdJoinClass")
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled_Post"1)
    
g_MaxPlayers get_maxplayers()
}

public 
cmdJoinClass(id)
    if(!
is_user_alive(id) && get_user_team(id) != TEAM_SPECTATOR)
        
set_task(2.0,"respawn",id+TASK)
    
public 
fw_PlayerKilled_Post(victimattacker)
    if(
is_valid_user(victim))
        
set_task(2.0,"respawn",victim+TASK)
    
public 
respawn(id) {
    
id -= TASK
    
    ExecuteHamB
(Ham_CS_RoundRespawnid)

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 04-21-2012 at 19:35.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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:30.


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