Need the dialog show only once in PickUp
#1

I want to show to player dialog when he picks up pickup .. the problem that I want to check if player is already exists in the pickup and not show him again the dialog, any ideas ?

Thanks alot
Reply
#2

It help?

http://forum.sa-mp.com/showthread.ph...=dialog+buffer
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Great!! Thanks alot
Reply
#4

No that won't help, it will just que it 10 times.

He means, when you stand in a pickup, it spams OnPlayerPickUpPickup every second, what you need to do is set a variable to 1 when they enter the pickup, and when they close the dialog set a 5 second timer, on that timer set it to 0 (so they move out of the way). Remember to set it to 0 on connect.
Reply
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
No that won't help, it will just que it 10 times.

He means, when you stand in a pickup, it spams OnPlayerPickUpPickup every second, what you need to do is set a variable to 1 when they enter the pickup, and when they close the dialog set a 5 second timer, on that timer set it to 0 (so they move out of the way). Remember to set it to 0 on connect.
and how can I check when he closed the dialog ? that is my problem.. check the response is not enough.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)