Raised This Month: $ Target: $400
 0% 

cant catch landing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-02-2011 , 21:22   Re: cant catch landing
Reply With Quote #1

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

#define PLUGIN  "Test"
#define AUTHOR  "Jim"
#define VERSION  "1.0"

public plugin_init()
{
  register_plugin(PLUGIN, VERSION, AUTHOR)
}

public client_PostThink(id)
{
  if(is_user_alive(id) && pev(id, pev_flags) & FL_ONGROUND && get_pdata_float(id, 255) > 0)
  {
    client_print(id, print_chat, "landing!");
  }
}
if you want a "former" landing, you should use this, change 0 to 350.0
#define PLAYER_FALL_PUNCH_THRESHHOLD (float)350 // won't punch player's screen/make scrape noise unless player falling at least this fast.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-03-2011 , 03:16   Re: cant catch landing
Reply With Quote #2

Quote:
Originally Posted by jim_yang View Post
Code:
get_pdata_float(id, 255)
Is there a name for this offset?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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:26.


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