Re: print
Patikrink, ar tarp oldbuttons (pev_oldbuttons su Fakemeta, EV_INT_oldbuttons su Engine) nėra to mygtuko, kurį spaudžia.
Pvz.:
Pvz.:
Code: Select all
if (entity_get_int(client, EV_INT_button) & IN_USE && ~entity_get_int(client, EV_INT_oldbuttons) & IN_USE){ // Paspaude +use}
- nuodas159
- Flooderis arba specialistas
- Posts: 522
- Joined: 2010 Sep 03 15:30
- Skype: nuodas159
- Location: SunCity
Re: print
Yra Bet tik taip:hleV wrote:Patikrink, ar tarp oldbuttons (pev_oldbuttons su Fakemeta, EV_INT_oldbuttons su Engine) nėra to mygtuko, kurį spaudžia.
Pvz.:
Code: Select all
if (entity_get_int(client, EV_INT_button) & IN_USE && ~entity_get_int(client, EV_INT_oldbuttons) & IN_USE){ // Paspaude +use}
Code: Select all
entity_set_int(victim, EV_INT_button, entity_get_int(id,EV_INT_button) & ~IN_JUMP)
Re: print
Aš tau kątik parodžiau, ką daryt. Jeigu nemoki, tai rodyk visą savo kodą.
- nuodas159
- Flooderis arba specialistas
- Posts: 522
- Joined: 2010 Sep 03 15:30
- Skype: nuodas159
- Location: SunCity
Re: print
Code: Select all
public fw_PlayerPreThink(id, iPlayer){ if(!is_user_alive(id)) return PLUGIN_HANDLED static Float: velocity[3], Float: Time static button, flag, oldbutton button = pev(id, pev_button) oldbutton = pev(id, pev_oldbuttons); flag = pev(id, pev_flags) Time = get_gametime() if(gInfected[id]) { switch(iClass[id]) { case 3: // smoker { if (!g_bFreezeTime && (button & IN_USE) && (flag & FL_ONGROUND)) { static Float: cooldown cooldown = get_pcvar_float(cvar_dragcd) if (Time - cooldown > g_LastDrag[id] && (!g_hook[id]) && p_team[id] == 1 && iClass[id] == 3) { drag_start(id) g_LastDrag[id] = Time } } if(!g_bFreezeTime && (!(button & IN_USE)) && (oldbutton & IN_USE)) drag_end(id) } } } return FMRES_IGNORED}
Last edited by nuodas159 on 2012 Mar 16 11:56, edited 6 times in total.
Re: print
Nieko nesako man tavo ištraukos iš kodo.
Who is online
Users browsing this forum: No registered users and 2 guests