Raised This Month: $ Target: $400
 0% 

[Ayuda]ponerle zona de respawn


  
 
 
Thread Tools Display Modes
Author Message
Submis
Junior Member
Join Date: Feb 2011
Old 02-25-2011 , 02:59   [Ayuda]ponerle zona de respawn
#1

hola la otra ves estaba buscando un plugin q te reviva cuando mueras y lo encontre , pero hay algo q no me gusta siempre renaces en base , como puedo aser para q este plugin te renasca en distintas zonas del mapa ( no solo en base ) . el plugin q uso es este .

PHP Code:
/* AMX Mod X script. 

* (c) Copyright 2002-2003, f117bomb 
* This file is provided as is (no warranties). 

*  *******************************************************************************
*   
*    Ported By KingPin( [email protected] ). I take no responsibility 
*    for this file in any way. Use at your own risk. No warranties of any kind. 
*
*  *******************************************************************************
*
* Set Cvar 'amx_respawn' 1 or 0 

*/ 

#include <amxmodx>
#include <fun>

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

public 
death_msg() 
{    
    if (
get_cvar_num("amx_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) == || is_user_alive(vIndex)) 
        return 
PLUGIN_CONTINUE 
    spawn
(vIndex
    
    return 
PLUGIN_CONTINUE    


public 
plugin_init() 

       
register_plugin("amx_respawn","0.9.4","f117bomb"
    
register_event("DeathMsg","death_msg","a"
    
register_event("ShowMenu","TeamSelect","b","4&Team_Select")
    
register_event("VGUIMenu","TeamSelect","b","1=2")
    
register_cvar("amx_respawn","0"
    
    return 
PLUGIN_CONTINUE 

la idea seria tipo deatmacht pero sin menus de armas ni proteccion , solo respawn

Last edited by Submis; 02-25-2011 at 03:02.
Submis is offline
Calaverazo
Senior Member
Join Date: Dec 2009
Old 02-25-2011 , 05:02   Re: [Ayuda]ponerle zona de respawn
#2

Podes usar algun "random respawn"...

http://forums.alliedmods.net/showthread.php?p=669666
http://forums.alliedmods.net/showthread.php?p=240182
Calaverazo is offline
 



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 02:29.


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