Raised This Month: $12 Target: $400
 3% 

[Req] How to set Longjump Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thebro
Senior Member
Join Date: Jan 2011
Old 07-18-2013 , 19:50   [Req] How to set Longjump Speed
Reply With Quote #1

Hello. I compiled the plugin, works perfectly fine. But the Longjump is way to far.
Is there any way to modify the speed of the Longjump?
PHP Code:
#include <amxmodx>
#include <fakemeta_util>

#tryinclude <biohazard>

#if !defined _biohazard_included
        #assert Biohazard functions file required!
#endif


new zomb_leapzomb_time


public plugin_init()
{
     
register_plugin("Bio LongJump/Leap""0.21""Jay-izi/TheRadiance")
     if (!
is_biomod_active()) pause("ad")
     
zomb_leap register_cvar("bh_zombie_leap","1")
     
zomb_time register_cvar("bh_zombie_leap_time","15.0")
}

public 
event_infect2(id
{
     if (
is_user_alive(id) && is_user_firstzombie(id))
     {
          if (
get_pcvar_num(zomb_leap))
          {
               new 
Float:leap_float=get_pcvar_float(zomb_time)
               
set_task(leap_float,"leap_begin",id)
               new 
num get_pcvar_num(zomb_time)
               
set_hudmessage(24323512, -1.00.4006.014.0)
               
show_hudmessage(id"%d seconds before you have leap",num)
          }
     }
}

     
public 
leap_begin(id
{
     if (!
is_user_alive(id))
          return 
PLUGIN_HANDLED

     
if (is_user_firstzombie(id))
     {
          
set_hudmessage(24323512, -1.00.4006.05.0)
          
show_hudmessage(id"You now have leap")
          
fm_set_user_longjump(idtruetrue)
     }
     
     return 
PLUGIN_CONTINUE

Please and thankyou!

Last edited by thebro; 07-18-2013 at 19:51.
thebro is offline
Reply



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 03:29.


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