SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 02/09/2018, 02:12 PM   #1
YenTy
Little Clucker
 
Join Date: Mar 2018
Posts: 21
Reputation: 0
Default Prevent to download files

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?
YenTy is offline   Reply With Quote
Old 14/09/2018, 08:37 PM   #2
YenTy
Little Clucker
 
Join Date: Mar 2018
Posts: 21
Reputation: 0
Default Re: Prevent to download files

Refresh. Anyone?
YenTy is offline   Reply With Quote
Old 14/09/2018, 08:43 PM   #3
J0sh...
High-roller
 
J0sh...'s Avatar
 
Join Date: Aug 2014
Location: Hamburger
Posts: 1,324
Reputation: 409
Default Re: Prevent to download files

No as far as I know
__________________
🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔
Yes I know my name has 3 dots.
Thanks for noticing, it was meant to signify a pause in the personal message asking to be named J0sh but they got included.
J0sh... is offline   Reply With Quote
Old 15/09/2018, 02:11 AM   #4
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 250
Reputation: 33
Default Re: Prevent to download files

Quote:
Originally Posted by YenTy View Post
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?
__________________
Visit my Website
https://gangstasunny.de
GangstaSunny. is offline   Reply With Quote
Old 15/09/2018, 03:31 AM   #5
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,150
Reputation: 511
Default Re: Prevent to download files

Try Pawn.Raknet
Kar is offline   Reply With Quote
Old 15/09/2018, 03:49 AM   #6
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 191
Reputation: 14
Default Re: Prevent to download files

Quote:
Originally Posted by Kar View Post
Try Pawn.Raknet
What do you mean by this?
Undef1ned is offline   Reply With Quote
Old 15/09/2018, 10:53 AM   #7
isabe11a
Banned
 
Join Date: Sep 2018
Posts: 8
Reputation: 0
Default Re: Prevent to download files

Quote:
Originally Posted by Undef1ned View Post
What do you mean by this?
http://forum.sa-mp.com/showthread.php?t=640306
isabe11a is offline   Reply With Quote
Old 15/09/2018, 04:23 PM   #8
Undef1ned
Big Clucker
 
Undef1ned's Avatar
 
Join Date: Aug 2018
Location: Venezuela
Posts: 191
Reputation: 14
Default Re: Prevent to download files

Quote:
Originally Posted by isabe11a View Post
I know what it is.
Undef1ned is offline   Reply With Quote
Old 15/09/2018, 05:34 PM   #9
YenTy
Little Clucker
 
Join Date: Mar 2018
Posts: 21
Reputation: 0
Default Re: Prevent to download files

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.
YenTy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to download "Include files" randomfang Scripting Help 4 06/06/2018 07:15 AM
i cant download any files boyboyo SA-MP 0.3.DL 3 06/05/2018 10:07 AM
Cant download server files from solidfiles.net? orbison Server Support 9 14/10/2014 03:20 PM
Need download link to download SATDM DrLozer Scripting Help 2 17/08/2013 07:35 PM
Run time error 19? [Download to server files here] Riggster Server Support 2 01/04/2013 09:40 PM


All times are GMT. The time now is 11:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.