Raised This Month: $ Target: $400
 0% 

lighting tracers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-08-2006 , 00:19   lighting tracers
Reply With Quote #1

i'm trying to make the awp (maybe more weapons all together) to have lighting tracers
i've so far gotten this far but i'm stuck...
Code:
#include <amxmodx>   #include <amxmisc>   #include <cstrike>   new lastammo[33] new lastweapon[33] public plugin_init()     {     register_plugin("AWP Tracers","0.1","Mini_Midget")     register_event("CurWeapon","make_tracer","be","1=1","3>0")     } tracer(vec1[3],vec2[3]) {     message_begin(MSG_PAS, SVC_TEMPENTITY,vec1 );     write_byte( 6 )     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2])     write_coord(vec2[0])     write_coord(vec2[1])     write_coord(vec2[2])     message_end() } public make_tracer(id)     {     new ammo = read_data(3), weapon = read_data(2)     if(lastammo[id]>ammo && ammo>=0 && lastweapon[id]==weapon) {                 new vec1[3], vec2[3]         get_user_origin(id,vec1,1)         get_user_origin(id,vec2,4)                 if(weapon==CSW_AWP){             tracer(vec1,vec2)             lastammo[id]=ammo             } else {             lastweapon[id]=weapon             lastammo[id]=ammo         }         } else {         lastweapon[id]=weapon         lastammo[id]=ammo     }     return PLUGIN_HANDLED }
do i have to precach the lighting sprite and then do some other stuff to it to get it to work?
__________________
It's a mystery.
Mini_Midget 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 08:01.


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