Raised This Month: $ Target: $400
 0% 

create_TE_Spray help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 07-17-2010 , 10:04   Re: create_TE_Spray help..
Reply With Quote #2

example.. but sprites can't go through thea wall,roof..

it's real to get over head(roof,wall,ceiling,model..) coordinats[distance]? [sorry for my ban english..]
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define TE_SPRAY            120
new g_sFire;
public 
plugin_init()
{
    
register_plugin"fire_ball""1.0""-=ThQ=-" );
    
    
register_clcmd"xxa","go_fire");
}

public 
plugin_precache()
{
    
g_sFire precache_model("sprites/explode1.spr");
}

public 
go_fire(id,lvl,cid)
{
    if( 
cmd_accessidlvlcid) )
    {
        new 
parm[3];
        
get_user_origin(id,parm);
        
set_task(5.0,"xxa2",id,parm,3);
    }
    return 
PLUGIN_HANDLED;
}

public 
xxa2(parm[3])
{
    new 
origins2[3];
    
parm[2]+=200;
    
origins2[0]=(random_num(-4,4));
    
origins2[1]=(random_num(-4,4));
    
origins2[2]=-8;
    
Create_TE_SPRAY(parmorigins2g_sFire7701005);
}
stock Create_TE_SPRAY(position[3], direction[3], iSpritecountspeednoiserendermode){

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY 
    
write_byteTE_SPRAY )
    
write_coordposition[0] )        // Position
    
write_coordposition[1] ) 
    
write_coordposition[2] ) 
    
write_coorddirection[0] )        // Direction 
    
write_coorddirection[1] )  
    
write_coorddirection[2] ) 
    
write_shortiSprite )            // Sprite
    
write_bytecount )                // count 
    
write_bytespeed )                // speed 
    
write_bytenoise )                // noise
    
write_byterendermode )        // rendermode
    
message_end() 


Last edited by AngeIII; 07-17-2010 at 10:30.
AngeIII is offline
Send a message via Skype™ to AngeIII
 



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 07:08.


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