Raised This Month: $ Target: $400
 0% 

Event_CurWeapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 06-07-2010 , 06:12   Event_CurWeapon
Reply With Quote #1

Hey, I need some help with my script, I hooked event_curweapon event and changed cs_set_user_maxspeed to get_user_maxspeed + 30.0. but when I'm shooting and runnin I'm getting even faster and maxspeed increases to like 400+... how can I fix this problem ?


PHP Code:
public Event_CurWeapon(id){
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
        
set_user_maxspeed(id get_user_maxspeed(id) + get_pcvar_float(bspeed));

cvar bspeed is set to 30.0
reinert is offline
 



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 05:24.


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