Raised This Month: $ Target: $400
 0% 

i need some help with fm!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 10-09-2006 , 15:34   Re: i need some help with fm!!
Reply With Quote #2

This is how i did it (i didn't looked at your code)

Code:
stock fm_radius_damage(Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) {     new ent = 0     while ((ent = fm_find_ent_in_sphere(ent, fExplodeAt, float(5 * iRadiusMultiplier))) > 0) {                 if (is_user_alive(ent) && !fm_get_user_godmode(ent)) {             new Float:plHealth             pev(ent, pev_health, plHealth)                         plHealth - 10.0 + random_float(0, 1 * iDamageMultiplier)                         if (plHealth < 1) {                 user_kill(ent)             } else {                 set_pev(ent, pev_health, plHealth)             }         }     }         ent = 0         while ((ent = fm_find_ent_in_sphere(ent, fExplodeAt, float(4 * iRadiusMultiplier))) > 0) {                 if (is_user_alive(ent)) && !fm_get_user_godmode(ent)) {             new Float:plHealth             pev(ent, pev_health, plHealth)                         plHealth - 25.0 + random_float(0, 2 * iDamageMultiplier)                         if (plHealth < 1) {                 user_kill(ent)             } else {                 set_pev(ent, pev_health, plHealth)             }         }     }         ent = 0         while ((ent = fm_find_ent_in_sphere(ent, fExplodeAt, float(3 * iRadiusMultiplier))) > 0) {                 if (is_user_alive(ent) && !fm_get_user_godmode(ent)) {             new Float:plHealth             pev(ent, pev_health, plHealth)                         plHealth - 50.0 + random_float(0, 3 * iDamageMultiplier)                         if (plHealth < 1) {                 user_kill(ent)             } else {                 set_pev(ent, pev_health, plHealth)             }         }     }         ent = 0         while ((ent = fm_find_ent_in_sphere(ent, fExplodeAt, float(2 * iRadiusMultiplier))) > 0) {         if (is_user_alive(ent) && !fm_get_user_godmode(ent))             user_kill(ent)     }     }
__________________
All you need to change the world is one good lie and a river of blood
P34nut 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 04:46.


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