Raised This Month: $ Target: $400
 0% 

[Help] Need help with code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-18-2014 , 00:45   Re: [Help] Need help with code
Reply With Quote #1

Maybe, this can help.
PHP Code:
if(get_user_frags(isVictim))
{
    
set_user_frags(isAttackerget_user_frags(isAttacker) + iAmount)
    
set_user_frags(isVictimget_user_frags(isVictim) - iAmount)


Last edited by zmd94; 11-18-2014 at 04:19.
zmd94 is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 11-18-2014 , 04:08   Re: [Help] Need help with code
Reply With Quote #2

Quote:
Originally Posted by zmd94 View Post
Maybe, this can help.
PHP Code:
// If only if the victim frag is more than "0"
if(get_user_frags(isVictim) >= 0)
{
    
set_user_frags(isAttackerget_user_frags(isAttacker) + iAmount)
    
set_user_frags(isVictimget_user_frags(isVictim) - iAmount)

thanx zmd94 it' work
__________________
popeye10 is offline
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