May be deleted
|
Re: Picking doesn't work correctly
The code is wrong, touch is hooked between armoury_entity, weaponbox and any other entity. You should make sure that the id is a player. Also the classname check is wrong, because it will always be armoury_entity or weaponbox and not the weapon classname.
To know what weapon an armoury_entity contain do: PHP Code:
PHP Code:
To know if he touched an armoury_entity or a weaponbox you should have two different callbacks for the Ham_Touch forward or check inside it the classname like: PHP Code:
|
Re: Picking doesn't work correctly
I'm not good at all on the amxx since I'm a newbie into that.
Could you point me what to change into exactly what? Which part of the plugin has to be changed and what to use instead of that? |
Re: Picking doesn't work correctly
I show you exactly what to change and what to use. You are in scripting help forum, this means that you are willing to try to fix it based on advices. If you want someone to do it for you then you should ask in suggestions/request forum.
|
Re: Picking doesn't work correctly
Created the thread into the right section, thanks.
|
Re: Picking doesn't work correctly
I am not sure where did you see that I was not kind or that I didn't want to help you. You must understand that this forums have their one purposes: this one is only for scripting help, not ready made things. In fact, it took me more to explain the problem that I would take to just fix the code.
|
Re: Picking doesn't work correctly
This forum is about learning how to do it on your own (with the help of others) without just doing it for you. This takes effort on your part to do it. If you are asking Scripting Help questions in the Requests forum, you're not likely to get someone to just do it for you (that is not being mean, that is just how things work).
|
Re: Picking doesn't work correctly
My bad for posting into the wrong section in this case.
@Hamlet, I think I miss wrote my post, wasn't reffering to you and was definetly not an intention either as you've helped me in the past as well and I always appreciate any help that I can find on this forum. |
| All times are GMT -4. The time now is 22:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.