[Help]Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Dialog (
/showthread.php?tid=486410)
[Help]Dialog -
ADZAA - 08.01.2014
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!
Re: [Help]Dialog -
SilentSoul - 08.01.2014
Show me codes , and please explain more bit what are you trying to do
Re: [Help]Dialog -
offon - 08.01.2014
Change the spawn type of the pickup to 2.
Re: [Help]Dialog -
CutX - 08.01.2014
Quote:
Originally Posted by ADZAA
|
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
Re: [Help]Dialog -
ADZAA - 08.01.2014
@CutX MEN,you blow up my mind.Thank you very much men.It's work fine.Thank you once more !