Raised This Month: $ Target: $400
 0% 

Spawn with speed change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 12-27-2006 , 03:50   Spawn with speed change
Reply With Quote #1

I'm having problems making zombies(terrorists) spawn with a speed increase.
PHP Code:
new zomb_speed
public plugin_init() {
    
register_plugin(PLUGIN"2.0a"AUTHOR)
    
    
register_event("CurWeapon","event_cur_weapon","be")
    
    
zomb_speed register_cvar("zs_speed","500")
}

public 
event_cur_weapon(id) {
    if(!
is_user_alive(id) || !is_user_connected(id))
        return 
PLUGIN_CONTINUE
    
    
if(cs_get_user_team(id) == CS_TEAM_T) {
        
set_user_maxspeed(id,float(get_pcvar_num(zomb_speed)))
    }
    return 
PLUGIN_CONTINUE

__________________
It's a mystery.
Mini_Midget 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 22:21.


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