Raised This Month: $ Target: $400
 0% 

help in entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
h3llzOr
Member
Join Date: Nov 2011
Old 01-12-2013 , 20:23   help in entities
Reply With Quote #1

hi all, i want to do an model whenthe player is stunned, but doesn't appear

Code:
{
    new origin[3];
    new parm2[1];
    new vec[3];
    new Float:rsize[2][3] = { {-50.0, -50.0, -50.0}, {50.0, 50.0, 50.0} };
    new Float:fOrigin[3];
    new roots_ent = create_entity ( "info_target" );
    new args[1];

    get_user_origin ( id, origin );

    parm2[0] = id;

    get_user_origin ( id, vec );
    fOrigin[0] = float ( vec[0] );
    fOrigin[1] = float ( vec[1] );
    fOrigin[2] = float ( vec[2] ) - 35.0;

    entity_set_string ( roots_ent, EV_SZ_classname, "roots" );
    entity_set_model ( roots_ent, "models/warcraft3/ensnare.mdl" );
    entity_set_int ( roots_ent, EV_INT_body, 3 );
    entity_set_int ( roots_ent, EV_INT_sequence, 0 );
    set_size ( roots_ent, rsize[0], rsize[1] );
    entity_set_origin ( roots_ent, fOrigin );

    args[0] = roots_ent;
    set_task ( ENSNARE_TIME, "Task_Destroy_Roots", 130+id, args, 1 );

    return PLUGIN_CONTINUE;
}
well the player is stunned, he can't move, but the model doesn't appear. it was must be like this
http://img853.**************/img853/9...nabys0002d.png

Last edited by h3llzOr; 01-12-2013 at 20:49.
h3llzOr is offline
Reply


Thread Tools
Display Modes

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 13:46.


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