Raised This Month: $ Target: $400
 0% 

if player jump give some speed a. gravity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
samba88
Junior Member
Join Date: Jul 2011
Old 07-27-2011 , 16:07   if player jump give some speed a. gravity
Reply With Quote #1

Hi im new here..

i want to do a plugin what give a player more speed and some gravity if he jumping

now how can i do what maybe one can help me.

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <fun>

new get_gravity

public plugin_init() {
    
    
register_plugin("speedjump""1.0""Samba")
    
register_cvar("speedjump""1.0"FCVAR_SERVER)
    
    
get_gravity get_cvar_pointer("sv_gravity")

}

public 
client_jump(id) {
    

    
entity_set_float(idEV_FL_fuser20.0)    

    
    if (
pev(id,pev_button) & IN_JUMP
    {    
        
        

    }
    return 
PLUGIN_CONTINUE

maybe like QUAKE airmove..
u gonna faster if u jump

Last edited by samba88; 07-27-2011 at 16:24.
samba88 is offline
 


Thread Tools
Display Modes

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 00:50.


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