Raised This Month: $ Target: $400
 0% 

two plugins with one velocity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 01-31-2013 , 12:08   Re: two plugins with one velocity
Reply With Quote #2

try this:
Code:
public client_PreThink(id) {     if(g_multijump == true)     {         if(!is_user_alive(id)) return PLUGIN_CONTINUE         if(!(get_user_flags( id ) &  ADMIN_ADMIN)) return PLUGIN_CONTINUE         new nbut = get_user_button(id)         new obut = get_user_oldbutton(id)         if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))         {             if(jumpnum[id] < 1)             {                 dojump[id] = true                 jumpnum[id]++                 return PLUGIN_CONTINUE             }         }         if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))         {             jumpnum[id] = 0         }     }     if(g_bhop == true)     {         set_pev(id, pev_fuser2, 0.0)         if(pev(id, pev_button) & 2)         {         new flags = pev(id, pev_flags)                 if(flags & FL_WATERJUMP)          return PLUGIN_CONTINUE         if(pev(id, pev_waterlevel) >= 2)         return PLUGIN_CONTINUE         if(!(flags & FL_ONGROUND))         return PLUGIN_CONTINUE                 new Float:velocity[3]         pev(id, pev_velocity, velocity)         velocity[2] += 260.0         set_pev(id, pev_velocity, velocity)         set_pev(id, pev_gaitsequence, 6)         }       }     return PLUGIN_CONTINUE }

Last edited by jimaway; 01-31-2013 at 12:12.
jimaway is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode