[FilterScript] TRL Treasure Hunt System
#1

TRL Treasure Hunt System

Link to New Version | Treasure Hunt v2.1 is Released


Hello guys, It's TRL Here. Today I've made a Treasure Hunt System. It's my 4th Filterscript. It uses sscanf2 and zcmd.


Features/Commands:
/ctreasure - Command for RCon Admins, It will create a Treasure.
every treasure has its own unique id.
/destroyt [Treasure ID] - Command for RCon Admins. It will delete the selected Treasure.
/destroyallt - Command for RCON Admins. This command will destroy all treasure that have been placed in the server.

When you will create a Treasure(By /ctreasure), A $$Dollar$$ Pickup would be made with a Label of its ID. As a Player Pick's it up (Crosses the Pickup) He will be rewarded with a random Treasure. You can easily delete a treasure by typing /destroyt You find the ID of Treasure attached to it. You can add more Prizes By Editing the script.

Currently the Prizes are:
$10,000
$5,000
Rocket Launcher with 50 Ammo
Minigun(Machine gun) with 100 Ammo


How to add more prizes?

Just edit the code below:

Add case "number":{
//prize here
}
Under Switch Function
Change the random(5) Value to the number of cases you have made.

Credit$:
TRL-Me
Zcmd
Sscanf2

Pastebin:
Click Me!

Reply
#2

Good work. Keep it up.
Reply
#3

Thanks
Reply
#4

Do you know what Treasure is?
Making a pickup (first), then adding a 3D text labels completely makes it easy to locate. Treasures not only have money but lot more which this script don't add up. It's pretty irrelevant you add weapons in a treasure box!

According to the code, type 0, 1 and 2, 3 are the same.
The var treasures isn't required, you can simply do that with loops. Just use booleans instead of a var (treasure[MAX_TREASURE]) for true/false values.

Use objects for making treasures and KEY combinations for making users open it, some animations plus.
Reply
#5

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Do you know what Treasure is?
Making a pickup (first), then adding a 3D text labels completely makes it easy to locate. Treasures not only have money but lot more which this script don't add up. It's pretty irrelevant you add weapons in a treasure box!

According to the code, type 0, 1 and 2, 3 are the same.
The var treasures isn't required, you can simply do that with loops. Just use booleans instead of a var (treasure[MAX_TREASURE]) for true/false values.

Use objects for making treasures and KEY combinations for making users open it, some animations plus.
Well.. You said True.. But You can yourself add other Prizez.. As I described in the code..and If we talk about case 1,0,2,3 or whatever.. I made them so that there is less chance of getting Weapons..

Well.. Thanks for your advice..I'll better Include those feature in next version.

Once Again Thanks...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)