23.05.2010, 16:51
(
Последний раз редактировалось Lewwy; 18.08.2010 в 20:53.
)

Easy configuration for setup!
- Since I haven't scripted anything in a while, I thought I would release a little script for the
SA-MP community to download and enjoy. In order to run this script to your needs you will
need to open the script and change the configuration to whatever you like.
Some documentation has been added next to them to help you.
- Custom treasure chest (from a bottle of beer to a dumpster)
- Choose from a variety of options to fit your configuration how you like it
- Easy to configure and many things are done automatically based on user settings
- Runs along side your gamemode and (hopefully) will not interfere either
- Custom award setting for players once treasure is found
- Textdraws are included in this filterscript to make things look a little better
- RCON administrators can choose who participates in the hunt and who doesn't
- Uses the all new PVar system (* Requires R7 update)
- When close to the treasure you will be notified, a bit like the hot and cold game
- When a player dies, participating in the treasure hunt will be allowed again
- Change the Treasure's Position:
- In order to change the treasure's position you will need to be in-game.
Once in game you will need to be standing on the spot you wish for the
treasure to be in. Once in it type /save. This will save the coordinates
you were standing on when /save was typed. Now, minimise your game
and go to your San Andreas directory. In there, there should be a text
file named 'savedpositions.txt' which you will have to open. Once opened
you will see at the top your coordinates in brackets:
pawn Код:AddPlayerClass(287, 291.6556, 2035.5938, 17.6406, 235.3867, 24,100, 27,200, 31,500);
on wikipedia. So from this, extract your X, Y and Z coordinates.
In this case, it will be:
pawn Код:291.6556, 2035.5938, 17.6406
Next, you will be required to open the script. Once opened head to the
configuration near enough the start of the script. You will see part of it
called TX, TY, TZ. These are your X, Y, Z coordinates where the treasure
will be located. In there are some default coordinates that lead to the
pirate ship in Las Venturas. Change this to your newly created X, Y, Z
coordinates. After you have done that, it should look like this in our case:
pawn Код:#define TX 291.6556 // the x cord of the treasure
#define TY 2035.5938 // the y cord of the treasure
#define TZ 17.6406 // the z cord of the treasure
The same goes for the new spawn, do the exact same but for where you want
the player to be teleported to once the treasure is found. Once the treasure
is found however the player will not be allowed to participate in the treasure
event until the player either respawns, or is changed by a RCON admin using
the /treasure [playerid] command I have made to make it easier.
- Click me - Version 1.0 (*)
- Not available at this time.
- Sorry for the messy topic layout, was in a bit of a rush
- This script isn't fancy and technical, just for a bit of fun
- I would prefer it if comments on efficiency and smart comments are not allowed here
- If you have problems with the script, I will be glad to help you
- Please add some credit, thanks!
- * - Required
- * - Current & Available