Raised This Month: $ Target: $400
 0% 

Hooking the event, when clients maxspeed is changed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-30-2010 , 07:47   Hooking the event, when clients maxspeed is changed
Reply With Quote #1

So as the title says, it there any event which i can hook when a players maxspeed is changed

I tried the following method but it doesnt worked:
Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> public plugin_init() register_clcmd( "say test" , "hook" )     RegisterHam(Ham_Item_PreFrame, "player", "item" ) public item(id) client_print(0,print_chat,"Item Frame Called on player: %d", id) public hook(id) {     client_print(id,print_center,"speed set to 800.0")     set_pev(id, pev_maxspeed, 800.0) }
The forward is only called when i try to change my weapon, and it is not called when i manually set the max speed to 800.0 using the "say test" command so is there any other forward/event through which i can be sure that the clients maxspeed was changed
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 12-30-2010 at 08:54.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



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 02:11.


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