[Help]Dialog
#1

I solved thic topic https://sampforum.blast.hk/showthread.php?tid=486392 and when I stay on pickup he shows me again and again and I can't move how he shows me.How I made little bit slower shows me when I stay on pickup.It is an dialog.Thanks!
Reply
#2

Show me codes , and please explain more bit what are you trying to do
Reply
#3

Change the spawn type of the pickup to 2.
Reply
#4

Quote:
Originally Posted by ADZAA
Посмотреть сообщение
I solved thic topic https://sampforum.blast.hk/showthread.php?tid=486392 and when I stay on pickup he shows me again and again and I can't move how he shows me.How I made little bit slower shows me when I stay on pickup.It is an dialog.Thanks!
i know what you mean.
You go to the pickup, a dialog opens, you close the dialog and it opens again
cuz youre still standing in that pickup right?

this should fix it:
pawn Код:
//global var
new P_buffer[MAX_PLAYERS];

//right under OnPlayerPickuppickup
if(P_buffer[playerid]) if(gettime() - P_buffer[playerid] <= 5) return 1;//is checking if your last pickuppickup was 5 seconds ago.
P_buffer[playerid] = gettime();
you could also move this line
P_buffer[playerid] = gettime();
from onplayerpickuppickup to a dialog in OnDialogResponse.
So that it will get the time when you close a dialog.
Cuz if you stand in that pickup for a while and have that dialog opened for more than 5 seconds and close it, it will appear again. you'd have to get away from the pickup within 5 seconds at pickup
Reply
#5

@CutX MEN,you blow up my mind.Thank you very much men.It's work fine.Thank you once more !
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)