AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TakeDamage problem (https://forums.alliedmods.net/showthread.php?t=155394)

DoviuX 04-21-2011 12:14

TakeDamage problem
 
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);
        } 



All times are GMT -4. The time now is 19:48.

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