/* punish_slap(id, Float:punishPercentage) { for (new slapCnt = 1; slapCnt <= floatround(3.0 * punishPercentage, floatround_ceil); slapCnt++) user_slap(id, 0); } */ punish_slap(id, Float:punishPercentage){ for (new slapCnt = 1; slapCnt <= floatround(3.0 * punishPercentage, floatround_ceil); slapCnt++) if(!is_user_bot(id) && is_user_alive(id) && is_user_connected(id)) { user_slap(id, 0); } }