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

Solved INC File, Floating Weapon, Weapon Owner, Player Origins.


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-07-2016 , 18:32   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #11

After retrieving the entity's id, find its owner with pev_owner.

2. Па види го кодот на тој плугин бе брат.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-07-2016 , 18:54   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #12

Quote:
Originally Posted by edon1337 View Post
1. FIXED
What's fixed? Don't delete or edit your post after it's solved.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-07-2016 , 18:58   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #13

@ocixcrom , I understood now, I'm not sure if you're talking about 2) or 3) ? About 3) the question was "How to find the owner of a weapon, so when others pick up that weapon they can't?"
Quote:
[AMXX] Plugin "AKM.amxx" failed to load: Module/Library "lxs" required for plugin. Check modules.ini
@wickedd you're right, fixed, kinda.
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-08-2016 , 13:29   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #14

@Ocixcrom, any idea why i'm getting this error? What did I miss in my code?
Quote:
[AMXX] Plugin "AKM.amxx" failed to load: Module/Library "lxs" required for plugin. Check modules.ini
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-08-2016 , 14:15   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #15

You didn't add the plugin that registers the native...
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-08-2016 , 15:43   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #16

I did.. lxs.sma is working..
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-19-2017 , 13:28   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #17

Bump
__________________
edon1337 is offline
jackp
Member
Join Date: Jan 2016
Location: 
Old 01-19-2017 , 14:22   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #18

4. setting player origing...?

1. Are you sure lxs is not a module? I can't find any stock/function that increases XP (ex. lxs_set_user_xp)
jackp is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-19-2017 , 14:23   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #19

1. lxs_set_user_xp is a native, look at plugin_natives() function.
4. yup
__________________
edon1337 is offline
jackp
Member
Join Date: Jan 2016
Location: 
Old 01-19-2017 , 14:30   Re: INC File, Floating Weapon, Weapon Owner, Player Origins.
Reply With Quote #20

Quote:
Originally Posted by edon1337 View Post
1. lxs_set_user_xp is a native, look at plugin_natives() function.
4. yup
I know it's a native, but it will do nothing, am I blind or something? Either you are missing something or i'm missing something cause the include seems incomplete.

Edit: If you want to set origins, this works and I don't see if it has any risks

PHP Code:

new Float:origin[3];

set_pev(idpev_originorigin)
set_pev(idpev_velocity, { 0.00.00.0 }) 
You need to get coordinates you want and put them in the origin array.
Origin[0] = X
Origin[1] = Y
Origin[2] = Z

Last edited by jackp; 01-19-2017 at 14:33.
jackp is offline
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 12:53.


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