Post by LegendofWarior on Dec 10, 2015 21:52:18 GMT
This tutorial show you how to make nightvision show all the map, but the bad in it need to fixed: - Auto Enable - Not Free for Humans How to test it: By Pressing N or Writing in console nightvision ok, now lets start: 1) First go add the Bool new bool:activate_nv[33] // nightvision now go find public clcmd_nightvision(id) and remplace the code in it with { if(is_user_alive(id)) { if(activate_nv[id] == false) { set_task(0.1, "set_nightvision", id, _, _, "b") activate_nv[id] = true } else if(activate_nv[id] == true) { remove_task(id) activate_nv[id] = false } return PLUGIN_HANDLED } return PLUGIN_CONTINUE } Final Step, add below code: public set_nightvision(id) { new color_rgb[17] new color_r[5], color_g[7], color_b[5] parse(color_rgb, color_r, 4, color_g, 6, color_b, 4) static origin[3] get_user_origin(id, origin) message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id) write_byte(TE_DLIGHT) write_coord(origin[0]) write_coord(origin[1]) write_coord(origin[2]) write_byte(255) write_byte(0) write_byte(255) write_byte(150) write_byte(2) write_byte(0) message_end() } Credit : ArVEL- @ Giving the Code LegendofWarior @ Making the Tutorail