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

[ES][ZP] Me ayudan con esto? (SOLUCIONADO)


  
 
 
Thread Tools Display Modes
Author Message
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 01-07-2010 , 14:07   [ES][ZP] Me ayudan con esto? (SOLUCIONADO)
#1

Hola bueno de tanto buscar por fin encontre un main q anda bien y no me tire error ese de new message 35...bueno pero lo q pasa es q este q encontre tiene como un sistema de niveles me ayudan a sacarselo?...y tmb de paso fijense si tiene algo mal xq cuando agrego el daņo para un modo no me lo toma...osea agregue dos modos por ahora el soldier con su arma q ese si me toma el daņo pero dsp tmb se lo quise cambiar al modo sniper y survivor y al ultimo humano q en otros main andaba perfecton poniendo en el modulo hamtakedamage

PHP Code:
if(g_survivor[attacker])
        {
            new 
plrWeapIdplrClipplrAmmo    
            plrWeapId 
get_user_weapon(attackerplrClipplrAmmo)
            static 
Float:predamage
            predamage 
damage get_pcvar_float(cvar_zombiearmor)
            static 
Float:postdamage
            
if (plrWeapId == CSW_MP5NAVY)
            
postdamage predamage 6
            
else
            
postdamage predamage
            SetHamParamFloat
(4postdamage)
        } 
y ahora en este no funca no se xq :S

Last edited by XCristiaNX; 01-22-2010 at 13:43.
XCristiaNX is offline
Spartan!
Senior Member
Join Date: Oct 2009
Old 01-07-2010 , 14:14   Re: [ES][ZP] Me ayudan con esto?
#2

PHP Code:
if(g_survivor[attacker])
{
   new 
Float:predamage damage get_pcvar_float(cvar_zombiearmor)
   
   switch(
g_currentweapon[attacker])
   {
      case 
CSW_KNIFESetHamParamFloat(4predamage 20)
      case 
CSW_MP5NAVYSetHamParamFloat(4predamage 6)
   }

__________________

Last edited by Spartan!; 01-07-2010 at 15:25.
Spartan! is offline
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 01-07-2010 , 14:51   Re: [ES][ZP] Me ayudan con esto?
#3

Emm no pero no es eso xq la forma esta bien en otros main me funcionaba perfecto en este es en el q me molesta...el main tiene un sistemas de nivel no se si eso tendra algo q ver :s...alguien me puede ayudar a sacar ese sistema?
XCristiaNX is offline
[L]oL
Senior Member
Join Date: Dec 2009
Old 01-07-2010 , 15:08   Re: [ES][ZP] Me ayudan con esto?
#4

usa switch, lo que dijo spartan!
__________________
AGUANTE EL METAL

Last edited by [L]oL; 01-07-2010 at 15:11.
[L]oL is offline
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 01-07-2010 , 15:17   Re: [ES][ZP] Me ayudan con esto?
#5

Si probe con eso recien y tampoco me anda...osea pega lo mismo :S

EDIT: Esto es lo q tengo en take damage

PHP Code:
    // Attacker is human...
    
if (!g_zombie[attacker])
    {
        if(
g_survivor[attacker])
        {
               new 
Float:predamage damage get_pcvar_float(cvar_zombiearmor)
   
               switch(
g_currentweapon[attacker])
               {
                      case 
CSW_KNIFESetHamParamFloat(4predamage 25)
                      case 
CSW_MP5NAVYSetHamParamFloat(4predamage 4)
               }
        }  
        if (
g_soldierround)
        {
            new 
plrWeapIdplrClipplrAmmo    
            plrWeapId 
get_user_weapon(attackerplrClipplrAmmo)
            static 
Float:predamage
            predamage 
damage get_pcvar_float(cvar_zombiearmor)
            static 
Float:postdamage
            
if (plrWeapId == CSW_M4A1)
            
postdamage predamage 20
            
else
            
postdamage predamage
            SetHamParamFloat
(4postdamage)
        }
        if (
g_sniperround)
        {
            new 
plrWeapIdplrClipplrAmmo    
            plrWeapId 
get_user_weapon(attackerplrClipplrAmmo)
            static 
Float:predamage
            predamage 
damage get_pcvar_float(cvar_zombiearmor)
            static 
Float:postdamage
            
if (plrWeapId == CSW_AWP)
            
postdamage predamage 20
            
else
            
postdamage predamage
            SetHamParamFloat
(4postdamage)
        }
        if(
g_lasthuman[attacker])
        {
            new 
plrWeapIdplrClipplrAmmo    
            plrWeapId 
get_user_weapon(attackerplrClipplrAmmo)
            static 
Float:predamage
            predamage 
damage get_pcvar_float(cvar_zombiearmor)
            static 
Float:postdamage
            
if (plrWeapId == CSW_M4A1 || plrWeapId == CSW_DEAGLE)
            
postdamage predamage 3
            
else
            
postdamage predamage
            SetHamParamFloat
(4postdamage)
        } 
Y el unico q me funciona es el del soldier...y no se xq...ya esta la parte del sistema de niveles ya la saque recien...ahora me faltaria saber xq no me toma el daņo :s

Last edited by XCristiaNX; 01-07-2010 at 15:45.
XCristiaNX is offline
[L]oL
Senior Member
Join Date: Dec 2009
Old 01-07-2010 , 16:59   Re: [ES][ZP] Me ayudan con esto?
#6

if (!g_zombie[attacker]

Proba poniendo
(g_zombie[victim])

aunque no creo que sea eso
__________________
AGUANTE EL METAL
[L]oL is offline
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 01-07-2010 , 17:10   Re: [ES][ZP] Me ayudan con esto?
#7

mmm Pruebo pero no no creo q sea eso...xq si fuera eso directamente no entraria a la condicion y no me haria el soldier tampoco :S
XCristiaNX is offline
[L]oL
Senior Member
Join Date: Dec 2009
Old 01-07-2010 , 17:20   Re: [ES][ZP] Me ayudan con esto?
#8

http://forums.alliedmods.net/showpos...81&postcount=8

PHP Code:
if (g_survivor[attacker])
    {
        
damage *= get_pcvar_float(cvar_zombiearmor)
        switch (
plrWeapId)
        {
            case (
CSW_MP5NAVY): damage *= 3.0
        
}
        
SetHamParamFloat(4damage
__________________
AGUANTE EL METAL
[L]oL is offline
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 01-07-2010 , 19:00   Re: [ES][ZP] Me ayudan con esto?
#9

Si ya probe pero no se q onda probe de todas las formas q se o q vi en el foro y ninguna funciona...pero no se q onda me anda en un modo y en los otros no...alguien sabe xq puede ser?
XCristiaNX is offline
[L]oL
Senior Member
Join Date: Dec 2009
Old 01-07-2010 , 19:01   Re: [ES][ZP] Me ayudan con esto?
#10

Mostra todo tu takedamage...

osea todo el public, la funcion...
__________________
AGUANTE EL METAL
[L]oL 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 17:33.


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