Prevent to download files - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (
https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (
https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: Prevent to download files (
/showthread.php?tid=658352)
Prevent to download files -
YenTy - 02.09.2018
Hi,
Is there anyway to avoid OnPlayerRequestDownload public to be called? I want to take some actions on players before anything else but appearing window with custom files is annoying because I can not show them any dialog. I tried to return 0 in it but it's just stops download and leaves black screen in the middle of my monitor. And also, is it possible to call the function after all necessary action was taken?
Re: Prevent to download files -
YenTy - 14.09.2018
Refresh. Anyone?
Re: Prevent to download files -
J0sh... - 14.09.2018
No as far as I know
Re: Prevent to download files -
GangstaSunny. - 15.09.2018
Quote:
Originally Posted by YenTy
Hi,
Is there anyway to avoid OnPlayerRequestDownload public to be called? I want to take some actions on players before anything else but appearing window with custom files is annoying because I can not show them any dialog. I tried to return 0 in it but it's just stops download and leaves black screen in the middle of my monitor. And also, is it possible to call the function after all necessary action was taken?
|
I dont use 0.3DL but did you try hooking it?
Re: Prevent to download files -
Kar - 15.09.2018
Try Pawn.Raknet
Re: Prevent to download files -
Undef1ned - 15.09.2018
Quote:
Originally Posted by Kar
Try Pawn.Raknet
|
What do you mean by this?
Re: Prevent to download files -
isabe11a - 15.09.2018
Quote:
Originally Posted by Undef1ned
What do you mean by this?
|
https://sampforum.blast.hk/showthread.php?tid=640306
Re: Prevent to download files -
Undef1ned - 15.09.2018
Quote:
Originally Posted by isabe11a
|
I know what it is.
Re: Prevent to download files -
YenTy - 15.09.2018
Pawn.RakNet seems to be solution. I used Outcoming RPC SrcFinishedDownloading (id: 185) and now black windows doesn't appear. Now I've to recall public to allow users download anything. Redirect doens't work properly or I'm doing something wrong by putting my localhost ip in redirected address.