Raised This Month: $ Target: $400
 0% 

Help about solid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 05-08-2012 , 19:59   Re: Help about solid
Reply With Quote #6

i test this and work fine :S

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say t""Test")
}

public 
Test(id) {
    
    new 
ent create_entity("info_target")
    
    new 
Origin[3], Float:flOrigin[3]
    
    
get_user_origin(idOrigin)
    
IVecFVec(OriginflOrigin)
    
    
flOrigin[0] += 50.0
    flOrigin
[1] += 50.0
    
    entity_set_origin
(entflOrigin)
    
    
entity_set_float(entEV_FL_takedamage1.0)
    
entity_set_float(entEV_FL_health1000.0)
    
    
entity_set_string(entEV_SZ_classname"npc_revenant")
    
entity_set_model(ent"models/player/vip/vip.mdl")
    
entity_set_int(entEV_INT_solidSOLID_SLIDEBOX)
    
entity_set_int(entEV_INT_movetypeMOVETYPE_PUSHSTEP)
    
    
entity_set_int(entEV_INT_gamestate1)
    
    new 
Float:maxs[3] = { 16.016.036.0 
    new 
Float:mins[3] = { -16.0, -16.0, -36.0 }
    
entity_set_size(entminsmaxs)
    
drop_to_floor(ent)    

__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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 00:19.


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