Raised This Month: $ Target: $400
 0% 

Money as Health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-27-2011 , 09:50   Re: Money as Health
Reply With Quote #8

Code:
public plugin_init()       RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage", 1)   public fw_TakeDamage(victim, inflictor, attacker, Float:damage) {      if(is_user_alive(victim))           cs_set_user_money(victim, cs_get_user_money(victim) - floatround(damage))      else           cs_set_user_money(victim, 0) }

Assuming you're setting clients' money to their HP on spawn or whereever.

Last edited by Backstabnoob; 10-27-2011 at 09:53.
Backstabnoob is offline
 



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 14:27.


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