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(id, iStats, ibStats)
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.