Raised This Month: $ Target: $400
 0% 

different way of approaching this?Curweapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mrpanda
Senior Member
Join Date: Jan 2007
Location: Cali
Old 05-01-2007 , 23:45   different way of approaching this?Curweapon
Reply With Quote #1

hey guys i know what this code does: it basically says on current weapon set the user speed, which is zombie to a previously set cvar

but what i do not get is how this can cause errors and is there a way around this code to make the server realize the user and set the speed according to a predefinied variable

here is the code snippet

PHP Code:
public event_cur_weapon(id) {

    if(!
is_user_alive(id) || !is_user_connected(id))
        return 
PLUGIN_CONTINUE
    
    
if(g_zombie[id]) 
    {
        
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))
    }
    return 
PLUGIN_CONTINUE

__________________
premier gaming community http://www.mrpanda.net

I have come back from my slumber.
mrpanda 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 06:36.


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