Raised This Month: $ Target: $400
 0% 

TS Melee


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-26-2008 , 18:15   Re: TS Melee
Reply With Quote #4

I can't get that to work.

PHP Code:
public hook_damage(idinflictor_idattacker_idFloat:damagedamagebits)
{
    
// Katana and up, according to tsconst.inc
    
if (inflictor_id >= 34)
        
nrp_setuserstamina(idnrp_getuserstamina(id) - (floatround(damagefloatround_round) / 10))
    else
    {
        
// Ignore worldspawn
        
if (inflictor_id == 0)
        {
        }
        else
            
client_print(idprint_chat"[NRP] Weapons are not allowed!")

        
set_user_health(idget_user_health(id) + floatround(damagefloatround_round))
    }

    return 
HAM_HANDLED


Last edited by Spunky; 12-26-2008 at 18:18.
Spunky is offline
Send a message via AIM to Spunky
 



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 09:18.


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