Raised This Month: $ Target: $400
 0% 

Events


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 12-16-2006 , 11:34   Events
Reply With Quote #1

How can I get events like when someone jumps or reloads???
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-17-2006 , 18:24   Re: Events
Reply With Quote #2

You could catch reload with CurWeapon

And cathing jump on prethink checking player btns for IN_JUMP
[ --<-@ ] Black Rose is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 12-18-2006 , 02:12   Re: Events
Reply With Quote #3

Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "New Plugin" #define VERSION "0.1" #define AUTHOR "FatalisDK" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);         register_forward(FM_PlayerPreThink, "fwdPlayerPreThink", 0); } public fwdPlayerPreThink(id) {     if( pev(id, pev_button)&IN_JUMP     && !(pev(id, pev_oldbuttons)&IN_JUMP)     && pev(id, pev_flags)&FL_ONGROUND )     {         // Player jumped     } }
__________________
FatalisDK is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 02-03-2007 , 11:20   Re: Events
Reply With Quote #4

Thx
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
Reply


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 06:49.


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