Raised This Month: $ Target: $400
 0% 

Put vector looks like


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 03-17-2010 , 15:59   Put vector looks like
Reply With Quote #1

I´m working with this code:
PHP Code:
#include <amxmodx> 
 #include <amxmisc> 
 #include <engine> 
 
 
new g_Classname [] = "func_car" 
 
new g_Model [] = "models/bigtree.mdl" 
 
 
public plugin_init () 
 { 
 
register_plugin "OMFG" "HAX" "LOL" 
 
 
register_clcmd "say /model" "CmdSayCar" 
 
 
register_touch g_Classname "player" "TouchCar" 
 } 
 
 public 
plugin_precache () 
 
precache_model g_Model 
 
 public 
CmdSayCar id 
 { 
 new 
Ent create_entity "info_target" 
 
entity_set_string Ent EV_SZ_classname g_Classname 
 
entity_set_model Ent g_Model 
 
entity_set_int Ent EV_INT_solid SOLID_TRIGGER 
 
entity_set_size Ent Float :{- 50.0 ,- 50.0 ,- 50.0 }, Float :{ 50.0 50.0 50.0 }) 
 
entity_set_edict Ent EV_ENT_owner id 
 } 
 
 public 
TouchCar Ptd Ptr 
 { 
 new 
Owner entity_get_edict Ptd EV_ENT_owner 
 if( 
Owner != Ptr 
 return 
 
 
client_print Ptr print_chat "You have used this car. Due to time purposes, I'm not going to add code beyond this." 
 } 
And wanted to know how to put the vector look. Place the model where you are watching

Somebody help me?

Srry for my english
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 03-17-2010 , 16:24   Re: Put vector looks like
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=162

Use that and set the mode parameter to 3.

Quote:
Originally Posted by Funcwiki
If mode is passed, the origin changes:
0 - current position (Default)
1 - Position from eyes (weapon aiming)
2 - End position from player position
3 - End position from eyes (hit point for weapon)
4 - Position from last bullet hit (only CS)
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 03-17-2010 , 16:46   Re: Put vector looks like
Reply With Quote #3

Yes i read this tutorial and i make this code:
PHP Code:

    
new Ent create_entity("info_target")
    new 
origin[3]
    
get_user_origin(indexorigin);
    
entity_set_origin(idorigin)
    
entity_set_string(Ent,EV_SZ_classname,g_Classname)
    
entity_set_model(Ent,g_Model)
    
entity_set_int(Ent,EV_INT_solid,SOLID_TRIGGER)
    
entity_set_size(Ent,Float:{-50.0,-50.0,-50.0},Float:{50.0,50.0,50.0})
    
entity_set_edict(Ent,EV_ENT_owner,id
But it doesn´t work
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Reply



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 08:45.


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