Raised This Month: $ Target: $400
 0% 

Create shield entity to block damage?!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 01-17-2011 , 04:11   Re: Create shield entity to block damage?!
Reply With Quote #3

Something like that

PHP Code:

#include <hamsandwich>

public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}


public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(
is_user_alive(victim) && cs_get_user_vip(victim))
        return 
HAM_SUPERCEDE
    
return HAM_IGNORED


Last edited by Flipper_SPb; 01-17-2011 at 04:14.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
 



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 02:06.


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