Raised This Month: $ Target: $400
 0% 

Damage help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-25-2012 , 12:34   Damage help.
Reply With Quote #1

Hi! I have this script:

Code:
public FwdPlayerDamagePost(victim, inflictor, attacker, Float:damage, damageBits) {     if(1 <= attacker <= MaxPlayers && victim != attacker) {         PlayerData[attacker][_Data_TotalDamage] += floatround(entity_get_float(victim, EV_FL_dmg_take));     } }

But, how I can set to 100 if damage is more to 100?
__________________
kramesa 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:42.


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