Raised This Month: $ Target: $400
 0% 

TakeDamage problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-21-2011 , 12:14   TakeDamage problem
Reply With Quote #1

It has to only hurt players around him from other team but it kills and the player which exploded doesn't respawn, I can't seem to find the problem.

PHP Code:
        else if ( ( distancebetween 200 ) && gInfected[victim] && get_user_team(victim) == && iClass[victim] == && get_user_team(attacker) != get_user_team(victim))
        {
            new 
iOrigin];
            
get_user_originvictimiOrigin );

              new 
gmsgShake get_user_msgid("ScreenShake"
                
message_begin(MSG_ONEgmsgShake_attacker)
              
write_short(255<< 14 //ammount 
              
write_short(<< 14//lasts this long 
                
write_short(255<< 14//frequency 
              
message_end() 

                
message_begin(MSG_ONEg_msgScreenFade_attacker);
                
write_short(4096 3);
                
write_short(4096 3);
                
write_short(4096);
                
write_byte(150);
                
write_byte(0);
                
write_byte(0);
                
write_byte(220);
                
message_end();

        
ExecuteHam(Ham_TakeDamageattackeridid20.0DMG_GENERIC);

            
Create_BeamCylinderiOrigin120gCylinderSprite00616025500100);
        } 
DoviuX is offline
Send a message via Skype™ to DoviuX
 



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 19:48.


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