Configuracion Servidor DM
#1
hola como estan?
queria saber si alguno me puede ayudar a configurar un servidor deadmatch para cs 1.6
necesito configurar todo, y me gustaria que tengas cosas especificas
todos del mismo lado
ganar vida cuando killeas
cartucho de balas de 255
poder elegir si queres jugar modo "onlyhead" o modo normal

estoy buscando ayuda, y le pago al que me lo configure

muchas gracias
agustin
Responder
#2
Hola amigo como estás, no están lógico pagar por algo así. Todo lo que buscas está en este foro.

Munición en 255:
Código PHP:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "Unlimited Clip Ammo"
#define VERSION "1.0"
#define AUTHOR "-Acid-"

enum _:ArmasData{
    
CSW,
    
BALAS
}

new const 
szArmas[][ArmasData] = {
    
    { 
CSW_AWP255 },
    { 
CSW_AK47255 },
    { 
CSW_C4255 },
    { 
CSW_AUG255 },
    { 
CSW_ELITE255 },
    { 
CSW_DEAGLE255 },
    { 
CSW_FAMAS255 },
    { 
CSW_FIVESEVEN255 },
    { 
CSW_FLASHBANG255 },
    { 
CSW_HEGRENADE255 },
    { 
CSW_G3SG1255 },
    { 
CSW_GALI255 },
    { 
CSW_GLOCK18255 },
    { 
CSW_USP255 },
    { 
CSW_M249255 },
    { 
CSW_M3255 },
    { 
CSW_SCOUT255 },
    { 
CSW_M4A1255 }
};

public 
plugin_init() {
    
register_pluginPLUGIN VERSION AUTHOR );
    
register_event("CurWeapon" "Event_CurWeapon" "be" "1=1" );
    
}

public 
Event_CurWeaponid ){
    
    
    
cs_set_user_bpammo(idszArmas[id][CSW], szArmas[id][BALAS]);
    

Ganar vida por kill
Código PHP:
/*
*   http://games.qwerty.ru
*
*    AmxModX
*   Vampire plugin
*    by Shalfey
*
*   CVars
*   amx_vampire_hp - hp add for kill
*   amx_vampire_hp_hs - hp add for kill in head
*   amx_vampire_max_hp - max player hp
*
*   Players gets HP for kills.
*/
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN_VERSION "1.0c"

new health_add
new health_hs_add
new health_max

new nKiller
new nKiller_hp
new nHp_add
new nHp_max

public plugin_init()
{
    
register_plugin("Vampire"PLUGIN_VERSION"Shalfey")

    
health_add register_cvar("amx_vampire_hp""15")
    
health_hs_add register_cvar("amx_vampire_hp_hs""40")
    
health_max register_cvar("amx_vampire_max_hp""100")

    
register_event("DeathMsg""hook_death""a""1>0")     
}

public 
hook_death()
{
    
// Killer id
    
nKiller read_data(1)

    if(
is_user_admin(nKiller))
    {
        if ( (
read_data(3) == 1) && (read_data(5) == 0) )
        {
            
nHp_add get_pcvar_num (health_hs_add)
        }

        else
            
nHp_add get_pcvar_num (health_add)

        
nHp_max get_pcvar_num (health_max)

        
// Updating Killer HP
        
nKiller_hp get_user_health(nKiller)
        
nKiller_hp += nHp_add

        
// Maximum HP check
        
if (nKiller_hp nHp_maxnKiller_hp nHp_max

        set_user_health
(nKillernKiller_hp)

        
// Hud message "Healed +15/+40 hp"
        
set_hudmessage(02550, -1.00.1501.01.00.10.1, -1)
        
show_hudmessage(nKiller"Healed +%d hp"nHp_add)

        
// Screen fading
        
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
        
write_short(1<<10)
        
write_short(1<<10)
        
write_short(0x0000)
        
write_byte(0)
        
write_byte(0)
        
write_byte(200)
        
write_byte(75)
        
message_end()
    }


Lo del modo OnlyHeadshot puedes dejar el .sma del código que usas ahora para hacerle el menú del vote para el only. Saludos Mario
Responder
#3
gracias por la data carnage, te envie un mensaje privado ojala puedas ayudarmecarnage
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)