View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-29-2011 , 13:21   Re: Ghost after death
Reply With Quote #67

PHP Code:
public strip_user_weap(id){
    
id-=TASK_STRIP;
    
strip_user_weapons(id);

Can you make sure the player can't disconnect in this 0.1 seconds?

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type){    
    if(
is_user_connected(attacker) && is_ghost[attacker])
        return 
HAM_SUPERCEDE;
    
SetHamParamFloat(4damage)
    return 
HAM_IGNORED;

=>

PHP Code:
if( attacker 33 && is_ghostattacker ] )
          return 
HAM_SUPERCEDE;

return 
HAM_IGNORED
Do not change the 4th parameter because isn't needed, there's same values!
Also, why did you need the damage type and the damage value?
__________________

Last edited by claudiuhks; 07-29-2011 at 13:25.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks