Raised This Month: $ Target: $400
 0% 

zombieme.amxx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
albjb
Junior Member
Join Date: Jul 2013
Old 08-10-2013 , 11:56   Re: zombieme.amxx
Reply With Quote #1

Re-edit the event event_damage_pain (id) :
PHP Code:
public event_damage_pain(id) {//daņo recibido
    
new damage read_data(2)
    
    new 
bodypartweapon
    
new enemy get_user_attacker(idweaponbodypart)
    
//client_print(enemy, print_chat, "danio: %d", damage)
    
if ( zombie[id] && is_user_alive(id))//si el que recibe daņo es zombie 
    
{
        
//z_life[id] = floatround( float(get_user_health(id)) - (float(damage)) )
        
z_life[id] = get_user_health(id)
        
/*
        new z_health = floatround( float(get_user_health(id)) - (float(damage)) )
        if(z_health <= 0){
            set_user_health(id, 0)
        }
        */
        //client_print(id, print_chat, "Vida restante: %f", z_life[id])
        
zombiehealth(id)
        
emit_sound(idCHAN_VOICEpain_zombie[random_num(0ZOMBIE_PAIN 1)], 1.0ATTN_NORM0PITCH_NORM)
        
//return
    

    if(
zombie[enemy] && weapon == CSW_KNIFE && (enemy >= 1) && (enemy <= 32) && is_user_alive(id))//si el que causa el daņo es zombi    && is_user_alive(id)
    
{
        new 
Xdamage floatroundfloat(get_user_health(id)) - (float(damage) + get_pcvar_float(z_damage)) )
        
//Xdamage = la vida de la victima -(el daņo echo + el daņo extra por ser zombie)
        /*
        new vida = floatround(float(get_user_health(id)))
        new danio = floatround(float(damage) + get_pcvar_float(z_damage))
        new total = vida-danio
        client_print(enemy, print_chat, "Vida Victima: %d-%d =%d", vida, danio, total )
        */
        
if(Xdamage <= 0){
            
            
//sumara las muertes, frags... al marcador
            
new frags_frags//, deaths
            //suma +1 a las bajas causadas por el asesino
            
frags get_user_frags(enemy) + 1
            set_user_frags
(enemyfrags)
            
//suma +1 a los asesinatos de la victima (el CS por default resta -1)
            
_frags get_user_frags(id) + 1
            set_user_frags
(id_frags)
            
//suma +1 a las muertes de la victima
            //NO ES NECESARIO el CS suma +1 por default
                //deaths = cs_get_user_deaths(id) + 1
                //cs_set_user_deaths(id, deaths)
                //deaths = cs_get_user_deaths(id) + 1
                //cs_set_user_deaths(id, deaths)
                
            //para poner el sprite y quien mato a quien
            
set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE)
            
message_begin(MSG_ALLget_user_msgid("DeathMsg"), {000}, 0)
            
write_byte(enemy)
            
write_byte(id)
            
write_byte(0)
            
write_string("knife")
            
message_end()    
                
                
            
set_user_health(id0)
        }
        else{
            
set_user_health(idXdamage)
        }
        
//return
    
}
    
//return PLUGIN_CONTINUE

And another error detected (precache 512 limit)
maps give me some mistake...
there any difference between :
PHP Code:
engfunc (EngFunc_PrecacheSound "zombie/claw_strike1.wav")
or
precache_sound ("zombie/claw_strike1.wav"
1 - Which is better?
2 - There is something to increase the precache 512 limit work??

Last edited by albjb; 08-10-2013 at 11:58.
albjb is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-10-2013 , 12:31   Re: zombieme.amxx
Reply With Quote #2

Quote:
Originally Posted by albjb View Post
2 - There is something to increase the precache 512 limit work??
You cannot increase the limit
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
albjb
Junior Member
Join Date: Jul 2013
Old 08-10-2013 , 12:41   Re: zombieme.amxx
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
You cannot increase the limit
I'm riding a mod for cs 1.6 itself.
And I've seen other mods with more models, sprites ... than mine and yet work perfectly. as they have done?
Is there any way to not use precache? or skip the precache??
I will include them in the file setup.exe asin CS that everyone who plays in my mod will have the necessary files.
But if I remove the plugin precache gives me error "precache xxx ..."
as I can avoid it???
albjb 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 15:55.


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