[FilterScript] Simple Drug System By AlexzzPro
#1

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
Reply
#2

cool! i will use this
Reply
#3

Quote:
Originally Posted by schillow
View Post
cool! i will use this
Haha Thanks Hope you will enjoy it
Reply
#4

Nice script but you spelt one of the drugs wrong lol it's heroin not heroine.
Reply
#5

Quote:
Originally Posted by sherlock
View Post
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
Reply
#6

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
Reply
#7

Nice?
Reply
#8

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
Reply
#9

For some reason when I download I only get the .pwn file?....
Reply
#10

i will fix a /givedrug command
Reply
#11

This is great! But why did a police car drive like a maniac with the sirenes on only for some drugs!XD
Reply
#12

Quote:
Originally Posted by Jonesy96
View Post
For some reason when I download I only get the .pwn file?....
Have you tried turning on and off your pc?
Reply
#13

Quote:
Originally Posted by Mujib
Посмотреть сообщение
Have you tried turning on and off your pc?
+1
Reply
#14

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"
Reply
#15

I don't like weed effect, better is heroin but good job
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)