[FilterScript] [FS] DrugDealer - Mini Game
#1

[FS] Drug Dealer - Mini Game
  • /drugsearch - Cop Command to check if a player has drugs, then takes those drugs
  • /dealer - How to become a dealer
  • /drugrun - how to get the drugs
  • /drugs - too see how much drugs you have
  • /usedrugs - does what it says on the tin! also you get like extra health or if you use too much you lose health or even die
  • /buydrugs - also does what it says on the tin!
  • /stock - How to get the drugs once at the /drugrun spot
Do What you want with the script, I don't care.

Download

Orignal Script - [SMF]Johnny (RPG:SL)
Edited Version - Shadow (PR-RP)

Updated - This script previously was only able for PEN, I have now edited so it should now work with any gamemode its implemented in or simply add the Filterscript to your list.

Have Fun,

Shadow-
Reply
#2

wicked awesome shadow i will definitly use it on my server you did a great job thx
Reply
#3

That's if it works so make a backup first!
ill doo updates if people like it
Reply
#4

Does the officer get the drugs on him.
In his inventory or it gonna be deleted?
Reply
#5

when the officer takes the drugs, they just dissappear!
Reply
#6

Good job shadow.
woudln't it be better if you tested it with the Pen:LS script first? :P
Reply
#7

ceeebs
Reply
#8

Should of tested it first, lol.
Reply
#9

ceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeebs, it has been tested kinda, but it was like intergrated into the script along time ago, and i saw it in my folder so i thought i release.

So i know it definatly works, if i included everything there.
Reply
#10

is it just me or are some things like PlayerDealer not defined?
Reply
#11

yeah this is from the Streetlife Server, the author is [SMF]Johnny, he scripted the drug thing anyway
Reply
#12

Код:
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9127) : error 017: undefined symbol "GetDistanceBetweenPlayers"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 017: undefined symbol "Drugs"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : warning 215: expression has no effect
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 001: expected token: ";", but found "]"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
lines 9127 and 9128
Код:
if (GetDistanceBetweenPlayers(i,playerid) < 4) {
                if (Drugs[i] > 0) {
Reply
#13

Quote:
Originally Posted by DeathGod
Код:
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9127) : error 017: undefined symbol "GetDistanceBetweenPlayers"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 017: undefined symbol "Drugs"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : warning 215: expression has no effect
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 001: expected token: ";", but found "]"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9128) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
lines 9127 and 9128
Код:
if (GetDistanceBetweenPlayers(i,playerid) < 4) {
                if (Drugs[i] > 0) {
At the top of the script:
pawn Код:
new Drugs[MAX_PLAYERS];
And find GetDistanceBetweenPlayers On the forums. (I think it may be in the Pen:LS gamemode since it is a AddOn for it.
Reply
#14

Код:
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(20690) : warning 208: function with tag result used before definition, forcing reparse
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9157) : error 017: undefined symbol "PlayerDealer"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9157) : warning 215: expression has no effect
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9157) : error 001: expected token: ";", but found "]"
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9157) : error 029: invalid expression, assumed zero
D:\Dean's Documents\samp02Xserver.win32\gamemodes\Freeroamv2.pwn(9157) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
line 20690
Код:
stock Float:GetDistanceBetweenPlayers(p1,p2){
line 9157
Код:
 if(PlayerDealer[playerid] == JOB_DEALER) {
Reply
#15

Is There an installation guide?
Reply
#16

Link doesn't work for me please re-upload it.
Reply
#17

the link has expired, and i don't have it all atm, so i shall get it again in full and send to you!
Reply
#18

BUMP!!! Should work now !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)