Raised This Month: $ Target: $400
 0% 

Light Maker fix light.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HBxander
Senior Member
Join Date: Jan 2011
Location: Behind you!
Old 05-03-2011 , 09:19   Light Maker fix light.
Reply With Quote #1

Hi there.. I've made this lightmaker plugin, but it wont make the lights like umm.. ill try explain..

now i got the code ( under these lines ), and atm, i can stand on the light like a box and so on.. but i want it to be so i cant stand on it? dunno how to! :s

PHP Code:
CreateLightAiming(const id)
{
    if ( !
g_admin[id] && !g_gived_access[id] )
    {
        
console_print(id"You have no access to that command");
        return 
PLUGIN_HANDLED;
    }
    
    static 
origin[3];
    static 
Float:float_origin[3];
    
    
get_user_origin(idorigin3);
    
IVecFVec(originfloat_origin);
    
float_origin[2] += 4.0;
    
    
CreateLight(float_origin"15""255""255""255");
    
    return 
PLUGIN_HANDLED;
}

CreateLight(Float:origin[3], const radius[], const color_red[], const color_green[], const color_blue[])
{
    new 
ent create_entity("info_target");
    if ( !
is_valid_ent(ent) ) return 0;
    
    
entity_set_origin(entorigin);
    
entity_set_model(entg_sprite_light);
    
entity_set_float(entEV_FL_scale0.25);
    
entity_set_string(entEV_SZ_classnameg_light_classname);
    
entity_set_int(entEV_INT_solidSOLID_BBOX); // Isnt it just removing this line??
    
entity_set_int(entEV_INT_movetypeMOVETYPE_NONE);
    
    
entity_set_size(entFloat:{ -3.0, -3.0, -6.0 }, Float:{ 3.03.06.0 });
    
    static 
Float:color[3];
    
color[0] = str_to_float(color_red);
    
color[1] = str_to_float(color_green);
    
color[2] = str_to_float(color_blue);
    
    
entity_set_vector(entEV_VEC_rendercolorcolor);
    
    
SetProperty(ent1radius);
    
SetProperty(ent2color_red);
    
SetProperty(ent3color_green);
    
SetProperty(ent4color_blue);
    
    
entity_set_float(entEV_FL_nextthinkget_gametime() + 0.01);
    
    return 
ent;

__________________
Selling:

- PointMod for Hide And Seek - $20
- Private BlockMaker with Weapon Block And More - $50
- Achievements ( FFA GamePlay ) - $25

PM Me about Private Work!

Last edited by HBxander; 05-03-2011 at 09:22.
HBxander 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 04:20.


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