SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 15/07/2015, 10:42 AM   #1
TheRaGeLord
Banned
 
Join Date: Jun 2014
Posts: 314
Reputation: 24
Default TRL Treasure Hunt System | Old Version |

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!


Last edited by TheRaGeLord; 16/07/2015 at 09:40 AM.
TheRaGeLord is offline   Reply With Quote
Old 15/07/2015, 11:19 AM   #2
SpikY_
High-roller
 
SpikY_'s Avatar
 
Join Date: Jul 2014
Posts: 1,246
Reputation: 128
Default Re: TRL Treasure Hunt System

Good work. Keep it up.
__________________
-
SpikY_ is offline   Reply With Quote
Old 15/07/2015, 11:27 AM   #3
TheRaGeLord
Banned
 
Join Date: Jun 2014
Posts: 314
Reputation: 24
Default Re: TRL Treasure Hunt System

Thanks
TheRaGeLord is offline   Reply With Quote
Old 15/07/2015, 01:53 PM   #4
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,773
Reputation: 858
Default Re: TRL Treasure Hunt System

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.
__________________

Follow me on Github: Donate on Paypal to show your support:

Gammix is offline   Reply With Quote
Old 15/07/2015, 02:04 PM   #5
TheRaGeLord
Banned
 
Join Date: Jun 2014
Posts: 314
Reputation: 24
Default Re: TRL Treasure Hunt System

Quote:
Originally Posted by Gammix View Post
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...
TheRaGeLord is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] The Treasure Hunt (Easy to Configure) Lewwy Filterscripts 5 23/12/2013 01:21 PM
[FilterScript] Pickup Hunt System AiRaLoKa Filterscripts 14 23/12/2013 05:49 AM
[Map] Pirate treasure Tony_MontanAAA Maps 8 13/01/2011 06:22 PM
bug hunt 02manchestera Help Archive 2 27/03/2010 06:24 PM


All times are GMT. The time now is 09:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.