All pastes #82432 Raw Edit

case 5 again

public cpp v1 · immutable
·published 2006-07-08 14:02 UTC
rendered paste body
	new money = cs_get_user_money(id)	new health = get_user_health(id)...		case 5:		{						client_print(0,print_chat,"%s got 3 pyramids! Lucky!",id)					if(money > 16000)			{				client_print(id,print_chat,"Wow! You're swimming in money, as a reward, take this grenade and 175 Armor!")				give_item(id,"weapon_hegrenade")				cs_set_user_armor(id,175,CS_ARMOR_VESTHELM)			}			else if(16000 > money > 12750)			{				client_print(id,print_chat,"You're pretty rich, I'll give you a grenade as a reward!")				give_item(id,"weapon_hegrenade")			}			else if(money < 2500)			{				client_print(id,print_chat,"Have some extra HP... You really need the aid!")				set_user_health(id,(health + 25)) // IF THIS HAPPENS, "health" DOESNT CHANGE			}			else					cs_set_user_armor(id,100,CS_ARMOR_VESTHELM)			set_user_health(id,(get_user_health(id) + 25)) // SO, then THIS will do the same thing but with previous health			cs_set_user_money(id,16000)		}