Raised This Month: $ Target: $400
 0% 

Condition


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 03-12-2011 , 14:56   Condition
Reply With Quote #1

I want to make a plug with you can check something if you have X death / kills ratio, but I don't know how can I check the players ratio.

Here is:

PHP Code:
    new iStats[8], ibStats[8]
    
    
get_user_stats(idiStatsibStats)
    
    new 
Float:result
    
    result 
= (50.0 float(iStats[STATS_KILLS]) / float(iStats[STATS_KILLS] + iStats[STATS_DEATHS]))
    
    if(
result(id) == 50.0)
    {
        
// do stuff
    

I need to define the condition? Or... I really don't know.
killergirl 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 14:38.


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