If you only want it random every time the map starts.
Code:
new HEALTH</p><p> </p><p>public plugin_init( ) {</p><p> HEALTH = random_num( 0, 1000 )</p><p>}</p><p> </p><p>yourCode( ) {</p><p> set_user_health( id, get_user_health( id ) + HEALTH )</p><p> chat_print( id, " You have won %d heath.", HEALTH ) </p><p>}
Or if you only want it random every time the function is used:
Code:
#define HEALTH random_num( 0, 1000 )</p><p> </p><p>yourCode( ) {</p><p> new iHealth = HEALTH</p><p> set_user_health( id, get_user_health( id ) + iHealth )</p><p> chat_print( id, " You have won %d heath.", iHealth ) </p><p>}