Multiple Triggers on pTouched
Alright, I'm in no way a coder.. but I've been reading around and putting together snippets of codes that are relevant to what I needed to do: Create a entity sprite that when players step on will show them a message/motd/or whatever... i'll figure this out eventually.
Now I have it all put together.. and I was testing it showing a message to the player that touches the entity. It shows "Test test test".. my problem is it keeps spamming it as long as the player stands near the entity.. could somebody help me make it only execute the message once.. until player walks away and comes back to it again. :) Code:
/* Plugin generated by AMXX-Studio */ |
Re: Multiple Triggers on pTouched
Try to check oldorigin of the player for touching with this trigger, if it doesn't touch the trigger then you can print this message.
Or you can check if player touched this trigger in previous frame: PHP Code:
|
Re: Multiple Triggers on pTouched
Quote:
Thank you very much sir!:) |
| All times are GMT -4. The time now is 17:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.