Simple Drug System By AlexzzPro -
BizzyD - 06.04.2011
Simple Drug System
Hello, I am back with a new filterscript. I scripted a small & easy drug system.
You can buy the drugs behind City Hall. Just enter the white spinning arrow.
And a dialog will pop up. To use the drugs, just type the command /usedrug.
What kind of drugs?:
Currently there is only 2 drugs to buy. Weed & Heroine.
Both of them cost $1000 and it will give you 5 grams.
The prices are easy adjustable. If you open the script, you will see this:
Code:
new heroprice = 1000; // The price of heroine
new weedprice = 1000; // The price of weed
Just change thoose and the price will automaticly change. But you have to change the price in the dialogs & SendClientMessage.
pawn Code:
ShowPlayerDialog(playerid, DRUGBUY, DIALOG_STYLE_LIST, "Drugs","Heroine[$1000]\nWeed[$1000]","Buy","Close");
SendClientMessage(playerid, COLOR_YELLOW, "You purchased 5 grams of weed for $1000");
How to use:
Well, To use this filterscript. First you have to download it.
Then paste the pwn & amx to filterscript.
And open server.cfg and write this:
Code:
filterscripts drugsystem
Then goto scriptfiles and create a new folder called
Drugs
Work time:
Creating this filterscript took about a hour.
Disclamer:
By using this filterscript, You agree to:
Not to claim this as your own
Give me all the credits
Do not re-release without my permission
Video:
Please watch this video.
[ame]http://www.youtube.com/watch?v=5CbFAvwVA_s[/ame]
Downloading:
Pastebin
Solidfiles
Credits:
AlexzzPro - Scripting
Script lines: 218
Thanks for watching.
Please comment what you think about it.
Thanks, Alex
Re: Simple Drug System By AlexzzPro -
schillow - 06.04.2011
cool! i will use this
Re: Simple Drug System By AlexzzPro -
BizzyD - 06.04.2011
Quote:
Originally Posted by schillow
cool! i will use this
|
Haha
Thanks
Hope you will enjoy it
Re: Simple Drug System By AlexzzPro -
sherlock - 06.04.2011
Nice script but you spelt one of the drugs wrong lol it's heroin not heroine.
Re: Simple Drug System By AlexzzPro -
BizzyD - 06.04.2011
Quote:
Originally Posted by sherlock
Nice script but you spelt one of the drugs wrong lol it's heroin not heroine.
|
Sorry, My brother told me it was spelled like that. I had it first at Heroin. But he said it was wrong :S
Re: Simple Drug System By AlexzzPro -
Jonesy96 - 20.06.2011
This is great, however, could you maybe include a command like /givedrug ID or /selldrug. If you could that would be wicked and i would definitely use this filterscript and give you recognition
Respuesta: Simple Drug System By AlexzzPro -
Host-samp - 20.06.2011
Nice?
Re: Simple Drug System By AlexzzPro -
Ehab1911 - 21.06.2011
Nice, but you need to add some cool thing which is:
/selldrug DRUGNAME PLAYERID PRICE - /selldrug weed 1 1500
and /drugs - > To show you how many seeds you have
Re: Simple Drug System By AlexzzPro -
Jonesy96 - 21.06.2011
For some reason when I download I only get the .pwn file?....
Re: Simple Drug System By AlexzzPro -
BizzyD - 24.06.2011
i will fix a /givedrug command
Re: Simple Drug System By AlexzzPro -
justsomeguy - 24.06.2011
This is great! But why did a police car drive like a maniac with the sirenes on only for some drugs!XD
Re: Simple Drug System By AlexzzPro -
Mujib - 24.06.2011
Quote:
Originally Posted by Jonesy96
For some reason when I download I only get the .pwn file?....
|
Have you tried turning on and off your pc?
Re: Simple Drug System By AlexzzPro -
BizzyD - 26.06.2011
Quote:
Originally Posted by Mujib
Have you tried turning on and off your pc?
|
+1
Re: Simple Drug System By AlexzzPro -
Jordan69 - 04.09.2011
pawn Код:
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(50) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(83) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(94) : error 017: undefined symbol "SetPlayerDrunkLevel"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(100) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(110) : error 017: undefined symbol "SetPlayerDrunkLevel"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(118) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(129) : error 017: undefined symbol "SetPlayerDrunkLevel"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(137) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(148) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(159) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(204) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(211) : error 017: undefined symbol "ShowPlayerDialog"
C:\Documents and Settings\user\Desktop\samp02Xserver.win32\filterscripts\drugsystem.pwn(219) : warning 203: symbol is never used: "strtok"
Re: Simple Drug System By AlexzzPro -
System64 - 04.09.2011
I don't like weed effect, better is heroin but good job