freeze
Re: freeze
Code: Select all
entity_set_int(id, EV_INT_flags, Flags | FL_FROZEN)
- nuodas159
- Flooderis arba specialistas
- Posts: 522
- Joined: 2010 Sep 03 15:30
- Skype: nuodas159
- Location: SunCity
Re: freeze
Bet ,kad jis šaudyti neleidžia...xFrostas wrote:Code: Select all
entity_set_int(id, EV_INT_flags, Flags | FL_FROZEN)
- aaarnas
- Vyr. diskusijų administratorius
- Posts: 3891
- Joined: 2010 Aug 31 13:21
- Skype: fiarno
- Contact:
Re: freeze
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)}
Palikau CS pasaulį ;/ . Nebepasiekiamas.
Re: freeze
Nebūtina tikrint, ar žaidėjas spaudžia tam tikrus mygtukus, kad juos pašalint. Be to, IN_LEFT -> IN_MOVELEFT, IN_RIGHT -> IN_MOVERIGHT.
Nors nežinau, ar tai užblokuos jūdėjimą/šokinėjimą. Bent jau per ESF tai ne.
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);
Who is online
Users browsing this forum: No registered users and 1 guest