Raised This Month: $ Target: $400
 0% 

[Help] Need help with code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-18-2014 , 04:12   Re: [Help] Need help with code
Reply With Quote #1

Its useless to do checks if is higher than 0, you just need:
PHP Code:
if(get_user_frags(isVictim)) 

    
set_user_frags(isAttackerget_user_frags(isAttacker) + iAmount
    
set_user_frags(isVictimget_user_frags(isVictim) - iAmount

Anyway if you check if frags = 0, then it will also affect when frags are 0.
__________________
Jhob94 is online now
Reply



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 17:31.


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