Raised This Month: $ Target: $400
 0% 

[GUIA] Como hacer mejoras optimizadas


  
 
 
Thread Tools Display Modes
Bk3Zell
Junior Member
Join Date: Jul 2012
Old 08-05-2012 , 04:25   Re: [GUIA] Como hacer mejoras optimizadas
#31

Saludos, Disculpa las molestias pero me gustaria que me ayudaras en algo:

Al momento de hacer el siguiente paso:

PHP Code:
// ahora mas abajo en la parte del chaleco agregamos 

// Block the attack if he has some
if (armor 0.0)
{
    
engfunc(EngFunc_EmitSoundvictimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
    if (!
g_zombie[attacker])
    {
        
set_pev(victimpev_armorvalue, - floatmax(0.0armor damage/ammount_resistence(g_skill_points[attacker][0][5])))
        return 
HAM_SUPERCEDE;
                
    }
    else
    {
        
set_pev(victimpev_armorvaluefloatmax(0.0armor damage+ammount_zdamage(g_skill_points[attacker][1][0])))
        return 
HAM_SUPERCEDE;
    }
            

Me lanzo un error puesto que tengo Clases Humanas Puestas. hice lo Siguiente para solucionar el Problema:


PHP Code:
        // Block the attack if he has some
        
if (armor 0.0)
        {
            
engfunc(EngFunc_EmitSoundvictimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage))
            return 
HAM_SUPERCEDE;
        }
            else
        {
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage+ammount_zdamage(g_skill_points[attacker][1][0])))
            return 
HAM_SUPERCEDE;
        }
            else
        {
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage+ammount_zdamage(g_skill_points[attacker][1][0])))
            return 
HAM_SUPERCEDE;
        }
            
    } 
No me tira error entra normal Todo bien.
Cual es el problema? los zombies no infectan, atakan atakan atakan pero es como si los humanos tubieran chaleco ilimitado, es decir no pueden infectar a los humanos. y la cosa es en estas lineas ya que si restauro solo las lineas de aribita si me deja infectar.

Me gustaria saver si me puedes ayudar.
Gracias y que tengas un buen dia.
Bk3Zell is offline
dalegato
Senior Member
Join Date: Feb 2011
Old 08-05-2012 , 16:09   Re: [GUIA] Como hacer mejoras optimizadas
#32

Quote:
Originally Posted by Bk3Zell View Post
Saludos, Disculpa las molestias pero me gustaria que me ayudaras en algo:

Al momento de hacer el siguiente paso:

PHP Code:
// ahora mas abajo en la parte del chaleco agregamos 

// Block the attack if he has some
if (armor 0.0)
{
    
engfunc(EngFunc_EmitSoundvictimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
    if (!
g_zombie[attacker])
    {
        
set_pev(victimpev_armorvalue, - floatmax(0.0armor damage/ammount_resistence(g_skill_points[attacker][0][5])))
        return 
HAM_SUPERCEDE;
                
    }
    else
    {
        
set_pev(victimpev_armorvaluefloatmax(0.0armor damage+ammount_zdamage(g_skill_points[attacker][1][0])))
        return 
HAM_SUPERCEDE;
    }
            

Me lanzo un error puesto que tengo Clases Humanas Puestas. hice lo Siguiente para solucionar el Problema:


PHP Code:
        // Block the attack if he has some
        
if (armor 0.0)
        {
            
engfunc(EngFunc_EmitSoundvictimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage))
            return 
HAM_SUPERCEDE;
        }
            else
        {
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage+ammount_zdamage(g_skill_points[attacker][1][0])))
            return 
HAM_SUPERCEDE;
        }
            else
        {
            
set_pev(victimpev_armorvaluefloatmax(0.0g_hclass_armor[g_humanclass[victim]] - damage+ammount_zdamage(g_skill_points[attacker][1][0])))
            return 
HAM_SUPERCEDE;
        }
            
    } 
No me tira error entra normal Todo bien.
Cual es el problema? los zombies no infectan, atakan atakan atakan pero es como si los humanos tubieran chaleco ilimitado, es decir no pueden infectar a los humanos. y la cosa es en estas lineas ya que si restauro solo las lineas de aribita si me deja infectar.

Me gustaria saver si me puedes ayudar.
Gracias y que tengas un buen dia.
Si vieras bien lo que has echo no tendrias problemas. Cambia todo esto por esto.

Code:
        // Block the attack if he has some         if (armor > 0.0)         {             engfunc(EngFunc_EmitSound, victim, CHAN_BODY, sound_armorhit, 1.0, ATTN_NORM, 0, PITCH_NORM)             if (!g_zombie[attacker])             {                 set_pev(victim, pev_armorvalue, - floatmax(0.0, armor - damage/ammount_resistence(g_skill_points[attacker][0][5])))                 return HAM_SUPERCEDE;                             }             else             {                 set_pev(victim, pev_armorvalue, floatmax(0.0, armor - damage+ammount_zdamage(g_skill_points[attacker][1][0])))                 return HAM_SUPERCEDE;             }         }

Saludos
dalegato is offline
Bk3Zell
Junior Member
Join Date: Jul 2012
Old 08-05-2012 , 18:11   Re: [GUIA] Como hacer mejoras optimizadas
#33

Si ya note mi error Gracias!!.
Pero me intriga, lo coloque como me vos de dijiste todo bien no tengo el problema.
Pero las clases humanas? no habra conflicto ni nada?
Bk3Zell is offline
dalegato
Senior Member
Join Date: Feb 2011
Old 08-05-2012 , 23:50   Re: [GUIA] Como hacer mejoras optimizadas
#34

Quote:
Originally Posted by Bk3Zell View Post
Si ya note mi error Gracias!!.
Pero me intriga, lo coloque como me vos de dijiste todo bien no tengo el problema.
Pero las clases humanas? no habra conflicto ni nada?
Conficto? ninguno no afecta en nada las clases humanas, es mas yo lo tengo
asi y 0 problem.
dalegato is offline
Bk3Zell
Junior Member
Join Date: Jul 2012
Old 08-18-2012 , 13:12   Re: [GUIA] Como hacer mejoras optimizadas
#35

Saludos, Disculpa las molestias xD
pero me tira un ultimo error es el siguiente:

<1636> : error 017: undefined symbol "set_user_armor"

Boy a la linea y es esto:
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))

<5157> : error 017: undefined symbol "set_user_armor"

Boy a la Linea y es esto:
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))

Si no mal recuerdo al agregar clases humanas ya dejo de usar el valor set_user_armor.
Como podria solucionarlo?

Gracias, y que tengas un buen dia.
Bk3Zell is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 08-18-2012 , 13:59   Re: [GUIA] Como hacer mejoras optimizadas
#36

Quote:
Originally Posted by Bk3Zell View Post
Saludos, Disculpa las molestias xD
pero me tira un ultimo error es el siguiente:

<1636> : error 017: undefined symbol "set_user_armor"

Boy a la linea y es esto:
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))

<5157> : error 017: undefined symbol "set_user_armor"

Boy a la Linea y es esto:
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))

Si no mal recuerdo al agregar clases humanas ya dejo de usar el valor set_user_armor.
Como podria solucionarlo?

Gracias, y que tengas un buen dia.
set_user_armor creo que está en la libreria de cstrike, incluila.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-18-2012 , 14:56   Re: [GUIA] Como hacer mejoras optimizadas
#37

No , es de fun , y agregala como include .

#include <fun>
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 08-19-2012 , 00:32   Re: [GUIA] Como hacer mejoras optimizadas
#38

Ahh cierto jajaj, fail
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
claans
Senior Member
Join Date: Jul 2012
Location: Argentina
Old 09-29-2012 , 14:42   Re: [GUIA] Como hacer mejoras optimizadas
#39

Tengo un problema :C , yo puse esto en mi zombie plague , pero cuando elijo la clase de zombie , si yo tengo 2 puntos en vida , osea (20000) , no me aparece 20000 , me aparece lo default del zombie

como arreiglarlo ?

sl2
cLAANS.-
__________________
http://amxmodx-es.com/ Allied Modders en español
http://amxmodx-es.com/ Allied Modders in spanish
claans is offline
Send a message via MSN to claans Send a message via Skype™ to claans
BlackFur
BANNED
Join Date: Apr 2012
Location: RCL
Old 09-29-2012 , 17:09   Re: [GUIA] Como hacer mejoras optimizadas
#40

PHP Code:
fm_set_user_health(idArrayGetCell(g_zclass_hpg_zombieclass[id])) 
Es es la linea del zombie plague la cual setea la vida al momento de ser infectado
Para ponerle la vida como tu dices debe ser algo parecido a esto

PHP Code:
fm_set_user_health(idArrayGetCell(g_zclass_hpg_zombieclass[id]) + 1000 g_puntos_hp[id]) 
BlackFur 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 15:22.


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