[FilterScript] Money bag/any pickup system
#1

Hi.

This simple FS was lying around, so I might as well as release it.

It's very simple.

There are a number of defines in the filterscript.
You can change them to get your desired effect.

The defines -
pawn Code:
#define ALLOW_COMMANDS      ( false )  // Allow commands like /gotomb or /stopmb or /resetmb for admins.

#define PICKUP_MODEL_ID     ( 1550 ) // the pickup model

// Don't change these, except if you must

#define STAGE_SPAWNED       (  0  )
#define STAGE_REVEAL_LOC            (  1  )
#define STAGE_REVEAL_CLP            (  2  )
#define STAGE_REVEAL_DIS            (  3  )
#define STAGE_INVALID       (  -1 )

#define TIMER_UPDATE_MINS           ( 1  )    // The number of minutes before the stages are updated

#define NEW_MONEYBAG_DELAY  (  5  )   // The time before a new moneybag is started after the last one

#define PRIZE_LOWER_LIMIT           ( 22500 )  // The lower limit of the prize to give
#define PRIZE_UPPER_LIMIT           ( 43000 ) // The upper limit
There are 4 stages -

1) Money bag is spawned
2) After TIMER_UPDATE_MINS minutes, the location is revealed (the area)
3) Then the closest player is revealed
4) The distance of the closest player is revealed
5) It is reset if not found.

The filterscript - pastebin link (here)

The includes you'll need are attached below.

They contain a_locs (Credits to the list compiler) and zcmd (Zeex).

Adding money bag locations -

Go to moneybag_locations.inc and in the array, add your locations as shown in it. Make sure the last line doesn't have a comma.

Screens? Not really needed, but anyways



Enjoy.

Contains some other things, but you should check out the whole thing as it is

Cheers
Reply
#2

Very simple, good job.
Reply
#3

Simple but useful.
Good job!
Reply
#4

simple go on!
Reply
#5

Good job! Rajat .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)