Raised This Month: $32 Target: $400
 8% 

Solved [HELP] search for plugin


Post New Thread Reply   
 
Thread Tools Display Modes
spooky HL15
Member
Join Date: Oct 2015
Old 05-09-2018 , 15:37   Re: [HELP] search for plugin
Reply With Quote #11

try this scripting
PHP Code:
#include <amxmisc>
#include <fun>
#include <engine>
#include <fakemeta>


#define PLUGIN "fall no damage"
#define VERSION "1.0"
#define AUTHOR "spooky"

#define FALL_VELOCITY 350.0

new bool:g_acc false

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forwardFM_CmdStart"fw_Start" )
}
public 
fw_Start(id) {
    if(
pev(idpev_button) & IN_USE ){
    
set_user_gravity(id,8.0
    
g_acc false;    
    }
    else
    if(
pev(idpev_oldbuttons) & IN_USE){
    
set_user_gravity(id,1.0)
     
g_acc true;
    }
}
new 
bool:falling[33];

public 
client_PreThink(id) {
  if(
is_user_alive(id) && is_user_connected(id) && !g_acc) {
    if(
entity_get_float(idEV_FL_flFallVelocity) >= FALL_VELOCITY) {
      
falling[id] = true;
    } else {
      
falling[id] = false;
    }
  }
}

public 
client_PostThink(id) {
  if( 
is_user_alive(id) && is_user_connected(id) && !g_acc) {
    if(
falling[id]) {
      
entity_set_int(idEV_INT_watertype, -3);
    }
  }

__________________
GK™
Website
spooky HL15 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-09-2018 , 18:07   Re: [HELP] search for plugin
Reply With Quote #12

Quote:
Originally Posted by spooky HL15 View Post
try this scripting
PHP Code:
#include <amxmisc>
#include <fun>
#include <engine>
#include <fakemeta>


#define PLUGIN "fall no damage"
#define VERSION "1.0"
#define AUTHOR "spooky"

#define FALL_VELOCITY 350.0

new bool:g_acc false

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forwardFM_CmdStart"fw_Start" )
}
public 
fw_Start(id) {
    if(
pev(idpev_button) & IN_USE ){
    
set_user_gravity(id,8.0
    
g_acc false;    
    }
    else
    if(
pev(idpev_oldbuttons) & IN_USE){
    
set_user_gravity(id,1.0)
     
g_acc true;
    }
}
new 
bool:falling[33];

public 
client_PreThink(id) {
  if(
is_user_alive(id) && is_user_connected(id) && !g_acc) {
    if(
entity_get_float(idEV_FL_flFallVelocity) >= FALL_VELOCITY) {
      
falling[id] = true;
    } else {
      
falling[id] = false;
    }
  }
}

public 
client_PostThink(id) {
  if( 
is_user_alive(id) && is_user_connected(id) && !g_acc) {
    if(
falling[id]) {
      
entity_set_int(idEV_INT_watertype, -3);
    }
  }

Player who isn't connected or dead cannot jump.
__________________
Relaxing is offline
Old 05-20-2018, 02:48
FonixPro20
This message has been deleted by FonixPro20.
Old 05-20-2018, 02:53
FonixPro20
This message has been deleted by FonixPro20.
spooky HL15
Member
Join Date: Oct 2015
Old 05-20-2018 , 19:13   Re: [HELP] search for plugin
Reply With Quote #13

Quote:
Originally Posted by Relaxing View Post
Player who isn't connected or dead cannot jump.
i had try it befor drop it here and player when he click key "e" the plugin runing, did dead can jump ??
__________________
GK™
Website

Last edited by spooky HL15; 05-20-2018 at 19:13.
spooky HL15 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 19:55.


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