Raised This Month: $ Target: $400
 0% 

Fakedamage doesnt damage?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 06-24-2011 , 21:50   Fakedamage doesnt damage?
Reply With Quote #1

Why isnt it working? I used code from blockmaker, and it isnt working even though when i use blockmaker damage works fine.

PHP Code:
    if (halflife_time() >= gfNextDamageTime[attacker])
    {
        if (
get_user_health(id) > 0)
        {
            new 
name[33], message[33], damage;
            
get_user_name(attackername32);
            
damage get_pcvar_num(hns_hurtdamage);

            
format(message32"%s has crushed you!"name)

            
fakedamage(idmessagedamageDMG_CRUSH);
        }
        else
        {
            
set_user_frags(attackerget_user_frags(attacker) + 1);
            
cs_set_user_deaths(idcs_get_user_deaths(id) + 1);

            
make_deathmsg(attackerid0"worldspawn");
            
update_scoreboard(id0);
        }
        
        
gfNextDamageTime[id] = halflife_time() + 0.5;
    } 
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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:27.


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