edit hook jump on players head by Connor
Hello, i have this simple plugin from Connor's last post:
https://forums.alliedmods.net/showthread.php?p=1906203 and it works fine but i have problem with xpmod PHP Code:
|
Re: edit hook jump on players head by Connor
If you have no experience in coding pawn please post in the suggestion requests otherwise everything we will tell you is a nonsense.
|
Re: edit hook jump on players head by Connor
however, maybe some tips how to do it? i would rather do it by myself
|
Re: edit hook jump on players head by Connor
First you need to describe what is the problem in order to solve it, what you have commented inside the script has nothing g to do with describing the problem.
|
Re: edit hook jump on players head by Connor
I need to give exp to the player who is standing/jumping on the second player. I tested this plugin and this works:
iExp[target] += gNumExp; but target = player on the bottom, not on the top. The problem is if i change iExp[target] += gNumExp; to iExp[id] += gNumExp; nothing happens |
Re: edit hook jump on players head by Connor
"id" is the player on the top. If it's not working, the problem is elsewhere.
PS: I suggest you have a look at my Goomba Stomp plugin - it does what you want in a much better way + it has a built-in option to give XP. |
Re: edit hook jump on players head by Connor
Quote:
OP : you can hook touch its much better on the other hand you can work with your method but I don't recommend using player thinking but if you want to work with your method you must do debug printing... And see if the array cell is getting increased. Also declare the variables as static in this kind of forwards. |
Re: edit hook jump on players head by Connor
Quote:
|
| All times are GMT -4. The time now is 17:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.