freeze
Posted: 2012 Apr 02 11:17
Kaip padaryti kad žaidėjas negalėtų judėti bet galėtų šaudyti?
Code: Select all
entity_set_int(id, EV_INT_flags, Flags | FL_FROZEN)
Bet ,kad jis šaudyti neleidžia...xFrostas wrote:Code: Select all
entity_set_int(id, EV_INT_flags, Flags | FL_FROZEN)
Code: Select all
/* Plugin generated by AMXX-Studio */ #include <amxmodx>#include <fakemeta> #define PLUGIN "New Plug-In"#define VERSION "1.0"#define AUTHOR "aaarnas" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_forward(FM_CmdStart, "forward_cmdstart")} public forward_cmdstart(id, uc_handle) { static button button = get_uc(uc_handle, UC_Buttons) if(button & IN_JUMP) button &= ~IN_JUMP if(button & IN_DUCK) button &= ~IN_DUCK if(button & IN_FORWARD) button &= ~IN_FORWARD if(button & IN_BACK) button &= ~IN_BACK if(button & IN_MOVELEFT) button &= ~IN_MOVELEFT if(button & IN_MOVERIGHT) button &= ~IN_MOVERIGHT set_uc(uc_handle, UC_Buttons, button)}
Code: Select all
set_uc(uc_handle, UC_Buttons, get_uc(uc_handle, UC_Buttons) & ~IN_JUMP & ~IN_DUCK & ~IN_FORWARD & ~IN_BACK & ~IN_MOVELEFT & ~IN_MOVERIGHT);