Raised This Month: $32 Target: $400
 8% 

Achivements mod [Help about Damage]


Post New Thread Reply   
 
Thread Tools Display Modes
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 09-06-2011 , 03:41   Re: Achivements mod [Help about Damage]
Reply With Quote #11

Quote:
#define DMG_GRENADE ( 1 << 24 )

if(Expert_Bomberman[attacker])
{
if(bits & DMG_GRENADE)
{
SetHamParamFloat(4, damage + 25.0 )
return HAM_OVERRIDE
}
}
__________________
Preparing to release my plugins..
r0ck is offline
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-06-2011 , 08:16   Re: Achivements mod [Help about Damage]
Reply With Quote #12

ill try now

@EDIT Error about bits... Fuck... I will never fix this shit... But even thanks
@EDIT2 I added bits to public fw_event(id, blablabla, bits) and now its working i will test later, thankya

@r0ck doesn't work, damn it :@

Any other idea :\
__________________

Sorry about my BAD English

Last edited by Krle; 09-06-2011 at 11:09.
Krle is offline
Send a message via MSN to Krle
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-06-2011 , 12:00   Re: Achivements mod [Help about Damage]
Reply With Quote #13

Are you sure the attacker has the g_ExpertBomberMan bool set to true ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-06-2011 , 12:14   Re: Achivements mod [Help about Damage]
Reply With Quote #14

PHP Code:
case 5:
            {
                
Expert_Bomberman[attacker] = true
                client_print
(attackerprint_center"Cestitamo, dobio si Expert Bomberman")
                
NovaRunda(id)
            } 
That means: YES :\

Any other idea :\

@EDIT
PHP Code:
public CheckDamage(victiminflictorattackerFloat:damagedamage_bitsbits)
{
    if(
Expert_Bomberman[attacker])
    {
        if(
bits & (<< 24))
        {
            
SetHamParamFloat(4damage 25.0)
            return 
HAM_OVERRIDE
        
}
    }
    
    return 
HAM_IGNORED

Here is something wrong, damn it :\
__________________

Sorry about my BAD English

Last edited by Krle; 09-06-2011 at 12:18.
Krle is offline
Send a message via MSN to Krle
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-06-2011 , 13:59   Re: Achivements mod [Help about Damage]
Reply With Quote #15

http://forums.alliedmods.net/showthread.php?t=166091

Everything i want to write already exsits fuck this pawn, i'm gonna delete amx studio and start playing minecraft -.-''
__________________

Sorry about my BAD English
Krle is offline
Send a message via MSN to Krle
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-06-2011 , 14:02   Re: Achivements mod [Help about Damage]
Reply With Quote #16

The problem here is that you have too many parameters.
damage_bits is the last one:

PHP Code:
public CheckDamage(victiminflictorattackerFloat:damagedamage_bits)
{
    if(
Expert_Bomberman[attacker])
    {
        if(
damage_bits & (<< 24))
        {
            
SetHamParamFloat(4damage 25.0)
            return 
HAM_HANDLED
        
}
    }
    
    return 
HAM_IGNORED

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-06-2011 , 14:26   Re: Achivements mod [Help about Damage]
Reply With Quote #17

Thanks if it doesn't work i will delete that achievement

@EDIT Doesnt work damn it wasted 24 hours of fucking fixing it and it fucking doesnt work fuck this achievement :@

@EDIT
PHP Code:
public SaveData(id)
{
    new 
AuthID[35]
    
get_user_authid(idAuthID34)
    
    new 
vaultkey[64]
    new 
vaultdata[256]
    
    
format(vaultkey63"%s-Mod"AuthID)
    
format(vaultdata255"%i#%i#"Bomberman[id], Advanced_Bomberman[id])
    
nvault_set(g_Vaultvaultkeyvaultdata)
    
    return 
PLUGIN_CONTINUE
}

public 
LoadData(id
{
    new 
AuthID[35]
    
get_user_authid(idAuthID34)
    
    new 
vaultkey[64]
    new 
vaultdata[256]
    
    
format(vaultkey63"%s-Mod"AuthID)
    
format(vaultdata255"%i#%i#"Bomberman[id], Advanced_Bomberman[id])
    
nvault_get(g_Vaultvaultkeyvaultdata,255)
    
replace_all(vaultdata255"#"" ")
    
    new 
bomberman[32]
    new 
advanced_bomberman[32]
    
    
parse(vaultdatabomberman31advanced_bomberman31)
    
    
Bomberman[id] = str_to_num(bomberman)
    
Advanced_Bomberman[id] = str_to_num(advanced_bomberman)
    
    return 
PLUGIN_CONTINUE

I get tag missmatch on Bomberman[id] = str_to_num(bomberman) and the underline Pls heeeelp
__________________

Sorry about my BAD English

Last edited by Krle; 09-06-2011 at 14:45.
Krle is offline
Send a message via MSN to Krle
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-06-2011 , 15:21   Re: Achivements mod [Help about Damage]
Reply With Quote #18

Never mind, i gave up from this plugin, trash the tread
__________________

Sorry about my BAD English
Krle is offline
Send a message via MSN to Krle
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 23:33.


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