Raised This Month: $ Target: $400
 0% 

Need help generating smoke


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 11-16-2006 , 12:49   Need help generating smoke
Reply With Quote #1

I need some help. I want to generate some smoke from all alive players

I made:
PHP Code:
public plugin_init() {
    
register_plugin("ShNS""1.0""Hip_hop_x")
    
    
register_logevent("new_round"2"1=Round_Start")
}
public 
new_round(id) {
new 
smoke
smoke 
precache_model("sprites/steam1.spr")

    if(
is_user_alive(id)) {
        if(
get_cvar_num("sv_nadetail"))
                    {
                    new 
origin[3]
                    new 
mata
                    mata 
=  get_user_origin(idorigin2)
                        
message_begin(MSG_ALL ,SVC_TEMPENTITY)
                        
write_byteTE_SMOKE )
                        
write_coord(mata)    
                        
write_coord(mata)
                        
write_coord(mata)
                        
write_short(smoke)
                        
write_byte50 )    // scale in 0.1's
                        
write_byte10 )   // framerate
                        
message_end()
                    } 
    
                } 
    else     {    
    return 
PLUGIN_CONTINUE    
        
} return PLUGIN_HANDLED

How should I set the smoke to all alive players? And how to fix the warnings? Can you help me?
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
 



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:56.


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