[ROZWIĄZANE] Rysowanie kroków za prowadząc...
Najlepsza odpowiedź Wielkie Jol 29.12.2013 18:36
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN "xXPLUGINXx" #define VERSION "1.0" #define AUTHOR "JBEXTREME" #define vec_copy(%1,%2) ( %2[0] = %1[0], %2[1] = %1[1],%2[2] = %1[2]) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } public client_PostThink(id) { if(!(get_user_team(id) == 2) || !is_user_alive(id) || !(entity_get_int(id, EV_INT_flags) & FL_ONGROUND) || entity_get_int(id, EV_ENT_groundentity)) return PLUGIN_CONTINUE static Float:origin[3] static Float:last[3] entity_get_vector(id, EV_VEC_origin, origin) if(get_distance_f(origin, last) < 32.0) { return PLUGIN_CONTINUE } vec_copy(origin, last) if(entity_get_int(id, EV_INT_bInDuck)) origin[2] -= 18.0 else origin[2] -= 36.0 message_begin(MSG_BROADCAST, SVC_TEMPENTITY, {0,0,0}, 0) write_byte(TE_WORLDDECAL) write_coord(floatround(origin[0])) write_coord(floatround(origin[1])) write_coord(floatround(origin[2])) write_byte(105) message_end() return PLUGIN_CONTINUE }
Wycięte z jbextreme, nie wiem czy dobrze to zrobiłem, no ale nic nie zaszkodzi sprawdzić
Przejdź do postu
killer98
29.12.2013
Szukam pluginu, który będzie rysować kroki prowadzącego lub wszystkich CT na podłodze.
Najlepsza odpowiedź
Wielkie Jol
29.12.2013
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN "xXPLUGINXx" #define VERSION "1.0" #define AUTHOR "JBEXTREME" #define vec_copy(%1,%2) ( %2[0] = %1[0], %2[1] = %1[1],%2[2] = %1[2]) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } public client_PostThink(id) { if(!(get_user_team(id) == 2) || !is_user_alive(id) || !(entity_get_int(id, EV_INT_flags) & FL_ONGROUND) || entity_get_int(id, EV_ENT_groundentity)) return PLUGIN_CONTINUE static Float:origin[3] static Float:last[3] entity_get_vector(id, EV_VEC_origin, origin) if(get_distance_f(origin, last) < 32.0) { return PLUGIN_CONTINUE } vec_copy(origin, last) if(entity_get_int(id, EV_INT_bInDuck)) origin[2] -= 18.0 else origin[2] -= 36.0 message_begin(MSG_BROADCAST, SVC_TEMPENTITY, {0,0,0}, 0) write_byte(TE_WORLDDECAL) write_coord(floatround(origin[0])) write_coord(floatround(origin[1])) write_coord(floatround(origin[2])) write_byte(105) message_end() return PLUGIN_CONTINUE }
Wycięte z jbextreme, nie wiem czy dobrze to zrobiłem, no ale nic nie zaszkodzi sprawdzić