Custom Flashlight
baku
18.05.2008
Screen:
Instalacja:
Standardowa http://amxx.pl/viewtopic.php?t=20
Cvar'y & Komendy:
Instalacja:
Standardowa http://amxx.pl/viewtopic.php?t=20
Cvar'y & Komendy:
flashlight_custom 1 - włącza 0 - wyłącza plugin flashlight_r 100 czerwone wartość dla koloru latarki flashlight_g 100 zielone wartość dla koloru latarki flashlight_b 100 niebieskie wartość dla koloru latarki flashlight_drain 1.0 rate at which flashlight battery drains flashlight_charge 0.5 tempo, w którym bateria latarki ponownie ładuje flashlight_radius 9 promień światła latarki flashlight_decay 60 rate at which light "decays" (has to do with the edges of the light, just screw around with it)Wymagany moduł:
Engine
Załączone pliki
mefi 12.08.2009
Nierozumiemy się chodzi mi dokladnie o to że np. chce dodać 3 kolory to musze tak do amxx.cfg dodać ?
flashlight_r 122 flashlight_g 100 flashlight_b 134 flashlight_r 111 flashlight_g 100 flashlight_b 234 flashlight_r 211 flashlight_g 100 flashlight_b 193 flashlight_r 233 flashlight_g 098 flashlight_b 122
byCZUS
13.08.2009
A ja dam inny kod ktory wyciagnelem z KZ arg lub ZP Niepamietam powinien on pomoc
meffy i Daddy
meffy i Daddy
#include <amxmodx> #include <hamsandwich> #include <fakemeta_util> new g_playerflashcolor[33] new g_playerenableflash[33] new g_flashlight_colors[][3] = { {100,0,0},{0,100,0},{0,0,100},{0,100,100},{100,0,100},{100,100,0}, {100,0,60},{100,60,0},{0,100,60},{60,100,0},{0,60,100},{60,0,100}, {100,50,50},{50,100,50},{50,50,100},{0,50,50},{50,0,50},{50,50,0} }; public plugin_init() { register_plugin("CustomFlashlight","0.11","Avalanche"); register_forward(FM_CmdStart, "fw_Start") RegisterHam(Ham_Player_PreThink, "player", "FwdPlayerPreThink") } public client_connect(id) g_playerenableflash[id] = false public FwdPlayerPreThink(id) { if( g_playerenableflash[id] && is_user_alive(id) ) { Make_FlashLight(id, g_playerflashcolor[id]) } } public fw_Start(id, uc_handle, seed) { if(get_uc(uc_handle, UC_Impulse) == 100) { if(is_user_alive(id)) { g_playerflashcolor[id] = random_num(0, sizeof(g_flashlight_colors)-1) g_playerenableflash[id] = !g_playerenableflash[id] } set_uc(uc_handle, UC_Impulse, 0) return FMRES_HANDLED } return FMRES_IGNORED } Make_FlashLight(id, color) { static Float:origin[3] fm_get_aim_origin(id, origin) message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id) write_byte(TE_DLIGHT) engfunc(EngFunc_WriteCoord, origin[0]) engfunc(EngFunc_WriteCoord, origin[1]) engfunc(EngFunc_WriteCoord, origin[2]) write_byte(15) write_byte(g_flashlight_colors[color][0]) write_byte(g_flashlight_colors[color][1]) write_byte(g_flashlight_colors[color][2]) write_byte(1) write_byte(60) message_end() }
no name
11.11.2009
byQQ, Ten twój plugin zmienia światło latarki na kilka? Tak jak na HNS?
m4ciekpl
02.02.2010
Sry za odkop ale czemu nie zmienia mi sie kolor? (latarka dziala tylko kolor bialy jest) latarka wiem ze jest wlaczona jako skrypt bo inaczej sie swieci.
mgr inż. Pavulon
02.02.2010
Sry za odkop ale czemu nie zmienia mi sie kolor? (latarka dziala tylko kolor bialy jest) latarka wiem ze jest wlaczona jako skrypt bo inaczej sie swieci.
a jak masz cvar'y ustawione ?