Raised This Month: $ Target: $400
 0% 

[SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 01-14-2011 , 05:14   Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Reply With Quote #1

Oh , i forgot the include , thanks .

When you say ' You didn't Teleport the barrel anywhere ' , i need put

PHP Code:
Format(positionsizeof(position), "%1.1f %1.1f %1.1f"pos[0], pos[1], pos[2]); 
DispatchKeyValue(ent"origin"position); 
Like that ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 01-14-2011 , 16:47   Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Reply With Quote #2

The code you posted is only to be used on Laser Sight boxes, unless you fee like it. Though What you need to do is this.
After DispatchSpawn(ent);
PHP Code:
new Float:eye[3];
GetClientEyePosition(clienteye);
TeleportEntity(enteyeNULL_VECTORNULL_VECTOR); 
Also your prototype is wrong, it should be
public Action:Get_Sayed( client, args );
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
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 18:50.


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