Raised This Month: $32 Target: $400
 8% 

Model Placement


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-19-2010 , 14:23   Model Placement
Reply With Quote #1

How would I go about using a menu to place a model right in front of me.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-19-2010 , 17:27   Re: Model Placement
Reply With Quote #2

try this:

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <engine> 
#include <fun> 

new const gModel[] = "models/model.mdl"


public 
plugin_precache( ) 
    
precache_modelgModel ); 

public 
bla(id

    new 
iModel create_entity("info_target"); 
     
    if( !
is_valid_entiModel ) ) 
        return 
PLUGIN_CONTINUE
     
    new 
origin[3
    
get_user_origin(idorigin0
    
origin[1] += 20 
     
    entity_set_vector
(iModelEV_VEC_originorigin ); 
    
entity_set_modeliModelgModel ); 
    
drop_to_floor(iModel);     
    
    return 
PLUGIN_CONTINUE;

__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 07-19-2010 at 17:30.
mottzi is offline
Send a message via MSN to mottzi
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 05:07.


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