Raised This Month: $ Target: $400
 0% 

Smoke puffs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 04-21-2011 , 05:27   Smoke puffs
Reply With Quote #1

How can I make smoke puffs from a player, they repeat and disables on round end ?

PHP Code:
        if((iClass[id] == 3) && (gInfected[id]))
        {
            
set_task(2.0"smoker_puff")
        }


public 
smoker_puff(id)
{
    if(!
is_user_alive(id))
        return;

        new 
Float:fOrigin[3], iOrigin[3
        
entity_get_vectoridEV_VEC_originfOrigin); 
        
    if(
iClass[id] == 3)
    {
            
iOrigin[0] = floatround(fOrigin[0]) 
            
iOrigin[1] = floatround(fOrigin[1]) 
            
iOrigin[2] = floatround(fOrigin[2]) 
                 
            
message_begin(MSG_BROADCAST,SVC_TEMPENTITYiOrigin
            
write_byte(TE_SMOKE
            
engfuncEngFunc_WriteCoord,fOrigin[0]) 
            
engfuncEngFunc_WriteCoord,fOrigin[1]) 
            
engfuncEngFunc_WriteCoord,fOrigin[2]) 
            
write_short(smoker_spr
            
write_byte(35
                
write_byte(20
                
write_byte(0
            
message_end() 
    }
    
set_task(3.0"smoker_puff"TASKID_PUFF id)


Last edited by DoviuX; 04-21-2011 at 05:56.
DoviuX is offline
Send a message via Skype™ to DoviuX
 



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 19:50.


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