Raised This Month: $ Target: $400
 0% 

dividing something in half (eg. health)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 06-14-2006 , 07:54   dividing something in half (eg. health)
Reply With Quote #1

how do you divide or half something
i want to make a plugin
if the user has half of the total hp, eg = amx_maxhp 500 || current hp is 178
and he just killed someone, i want to set his hp to the half to half of the cvar which is 250

an example of showing me how would be nice with comments in it
__________________
It's a mystery.
Mini_Midget 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 07:56.


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