AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ANY EXAMPLE OF TE_BUBBLETRAIL] !!!!!!!!!!!!!!!!! (https://forums.alliedmods.net/showthread.php?t=163241)

avril-lavigne 07-28-2011 05:44

[ANY EXAMPLE OF TE_BUBBLETRAIL] !!!!!!!!!!!!!!!!!
 
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY) //message begin
write_byte(TE_BUBBLETRAIL)
write_coord() // min start position
write_coord()
write_coord()
write_coord() // max start position
write_coord()
write_coord()
write_coord() // float height
write_short() // model index
write_byte() // count
write_coord() // speed
message_end()

I cant found ANY working example in Google. just description.
mb some video..

Sylwester 07-28-2011 07:28

Re: [ANY EXAMPLE OF TE_BUBBLETRAIL] !!!!!!!!!!!!!!!!!
 
If you can't find working example, then make one yourself. It's so freaking simple.
PHP Code:

#include <amxmodx>

new g_sprite
new o1[3], o2[3]

public 
plugin_init(){
    
register_plugin("test""1.0""Sylwester")
    
register_clcmd("test1""test1")
    
register_clcmd("test2""test2")
    
register_clcmd("test3""test3")
}

public 
plugin_precache(){
    
g_sprite precache_model("sprites/laserbeam.spr")
}

public 
test1(id){
    
get_user_origin(ido1)
}

public 
test2(id){
    
get_user_origin(ido2)
}

public 
test3(id){
    
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY//message begin
    
write_byte(TE_BUBBLETRAIL)
    
write_coord(o1[0]) // min start position
    
write_coord(o1[1])
    
write_coord(o1[2])
    
write_coord(o2[0]) // max start position
    
write_coord(o2[1])
    
write_coord(o2[2])
    
write_coord(50// float height
    
write_short(g_sprite// model index
    
write_byte(40// count
    
write_coord(1// speed
    
message_end()



avril-lavigne 07-28-2011 10:04

Re: [ANY EXAMPLE OF TE_BUBBLETRAIL] !!!!!!!!!!!!!!!!!
 
thanks bro U saved my life


All times are GMT -4. The time now is 00:46.

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