07.02.2011, 16:32
(
Последний раз редактировалось Ash.; 10.12.2011 в 18:57.
Причина: Updated Link
)
Scripter's Tools
Simple Script Line Maker
This script is just something simple i thought up, i havent really done much in the way of scripting for the SAMP community recently, partly because Visual Basic and C++ have taken up much of my time, but enough about me, more towards the script eh?
What does it do?
Its quite limited in what it can do at the moment, but i want to keep this script updated, and so i will. Any suggestions you may post in your replies.
Currently, it can;
- Make Pickup Lines (/makepickup [model] [comment])
The model is the actual pickup. You can find a list of these on the wiki. The comment is the //comment.
The pickups type is 0 (The pickup does not display.) So you will need to change this in your script. - Make map icons (/makemapicon [model] [comment])
The model, is the actual map icon. You can also find a list of these on the wiki. The comment is the //comment.
The map icon type defaults to MAPICON_LOCAL and the color defaults to 0 (You can leave colour, only edit colour if you use Map Icon model 0) - Make Raw Position Lines (/makepos [comment])
Basic. A bit like SAMP's /rs save. However this can hold comments and can be stored in the script files folder. The comment is the //comment. - Make Vehicle Lines (CreateVehicle) (/makevehicle [model] [comment])
Yet again, the model is the vehicle model (and will return Invalid Vehicle Model if it is invalid) and the comment is the //comment.
The vehicle colours are random (-1, -1) and the respawn delay is also -1. - Make 3D Text Label lines (Create3DTextLabel) (/maketextlabel [text] [comment])
The text is the text you want to be displayed. The comment is pretty straight forward. Saves in its own file. - Make SetPlayerCheckpoint lines (sets a checkpoint for a player) (/makecp [comment])
The comment is pretty straight forward. It saves the data it collects in its own file.
//Note: This uses a definition that is configurable at the top of the script. Check it. (DEFAULT_CP_SIZE).
There a few #defines at the top of the script, these are the only real things that you need to change for this script to work.
pawn Код:
#define COLOUR 0xFF00FFFF //Yes, i have a thing for pink at the moment, no idea why... - Probably my girlfriends bedroom inspired me
#define ADMIN_ONLY //Comment this out or remove it if you wish to allow all players to use these commands
#define PICKUP_FILE "script_lines/pickups.txt" //The location of your pickups file
#define MAPICON_FILE "script_lines/mapicons.txt" //The location of your map icons file
#define COORDS_FILE "script_lines/coords.txt" //The location of your coords file
#define VEHICLE_FILE "script_lines/vehs.txt" //The location of your vehicle file
#define TEXTLABEL_FILE "script_lines/textlabels.txt" //The location of your 3D Text Label file.
#define CP_FILE "script_lines/checkpoints.txt" //The location of your checkpoint saving file.
#define DEFAULT_CP_SIZE 5.0 //Your default checkpoint size that is use in the /makecp command.
Troubleshooting
I have not found any problems with this script. If you find any, post them on this thread. Do not PM me them.
Suggestions
If you have a suggestion, post it in this thread, maybe with your reply, and i may add it in the next version.
Download - Updated
Here is the new PasteBin link;
http://pastebin.com/04TK7sZS
Код:
Credits; Draco Blue; DCMD SAMP Team - what for? Everything.
Thanks
Ash