player touch player with register_touch
Greetings.I recently started a plugin, which code I do not have at the moment, will add it later if needed.My question is the following: How can I register player1 touch player2 only one time.Example:
register_touch gives like 4~6 touches per second.I want one touch only.How can I achieve it? I've looked into FM_Touch and Ham_Touch, but couldn't understand FM_Touch and as far as I read the reference, Ham_Touch does not apply for players. Thanks in advance! |
Re: player touch player with register_touch
|
Re: player touch player with register_touch
I see what it does.Can you give me an example, please? Thank you for the fast reply, tho! :)
|
Re: player touch player with register_touch
Who told you that Ham_Touch doesn't apply for players?
|
Re: player touch player with register_touch
what about this idea?
u can get 1 touch every 0.5 second between two player PHP Code:
|
Re: player touch player with register_touch
Basically, the code is the following.I liked ur method, nea, but the server gives me runtime error and crashes.If somebody help me analyze where the problem lies, I will be grateful.Any guides are going to be useful as well.
|
Re: player touch player with register_touch
How about creating fkin boolean or a bitsum variable..
And use set task to reset it. |
Re: player touch player with register_touch
Quote:
|
Re: player touch player with register_touch
It's expected to get multiple calls, touch is called as long as they touch.
|
Re: player touch player with register_touch
Question - answered.Topic may be closed.Thanks.
|
| All times are GMT -4. The time now is 17:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.