AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model Placement (https://forums.alliedmods.net/showthread.php?t=132866)

GXLZPGX 07-19-2010 14:23

Model Placement
 
How would I go about using a menu to place a model right in front of me.

mottzi 07-19-2010 17:27

Re: Model Placement
 
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;




All times are GMT -4. The time now is 07:05.

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