06.04.2011, 10:42
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:
Just change thoose and the price will automaticly change. But you have to change the price in the dialogs & SendClientMessage.
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:
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
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
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");
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
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