Raised This Month: $ Target: $400
 0% 

Help|svc_bad


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-24-2011 , 07:24   Re: Help|svc_bad
Reply With Quote #2

Code:
#include <amxmodx>

new gSprite

public plugin_init()
{
    register_clcmd("say /beam","beam_effect")
}

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

public beam_effect(id)
{
    new origin[3]
    new aimorigin[3]
    get_user_origin(id, origin)
    get_user_origin(id, aimorigin, 3)
	
    message_begin(MSG_ALL, SVC_TEMPENTITY)
    write_byte(TE_BEAMPOINTS)
    write_coord(origin[0])
    write_coord(origin[1])
    write_coord(origin[2])
    write_coord(aimorigin[0])
    write_coord(aimorigin[1])
    write_coord(aimorigin[2])
    write_short(gSprite)    
    write_byte(0)    
    write_byte(0)    
    write_byte(10)    
    write_byte(15)    
    write_byte(0)    
    write_byte(0)
    write_byte(0)
    write_byte(255)
    write_byte(255)
    write_byte(0)
    message_end()
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 19:43.


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