//i is the health to set it to if ( (i > 0) && (i < 101) ) { //check if i is between 0 and 101 set_user_health(id,i) //set user health to i value }