[FilterScript] Scripter's Tools [ver 0.1]
#1

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).
Setting Up...
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.
You may edit any of these to suit your preference. You need to ensure that the directory your files will belong in will exist before you can actually start it, as when you run a command, it may crash the server if they dont exist.

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.
I hope this is useful for you.

Thanks
Ash
Reply


Messages In This Thread
Scripter's Tools - by Ash. - 07.02.2011, 16:32
Re: Scripter's Tools [ver 0.1] - by thimo - 07.02.2011, 16:33
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 16:34
Re: Scripter's Tools [ver 0.1] - by TheAlienForce - 07.02.2011, 16:36
Re: Scripter's Tools [ver 0.1] - by Infinitas - 07.02.2011, 16:36
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 16:38
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 16:46
Re: Scripter's Tools [ver 0.1] - by HyperZ - 07.02.2011, 16:49
Re: Scripter's Tools [ver 0.1] - by Kwarde - 07.02.2011, 16:51
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 16:52
Re: Scripter's Tools [ver 0.1] - by c-middia - 07.02.2011, 16:53
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 16:55
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 19:19
Re: Scripter's Tools [ver 0.1] - by Kwarde - 07.02.2011, 19:58
Re: Scripter's Tools [ver 0.1] - by Ash. - 07.02.2011, 20:10
Re: Scripter's Tools [ver 0.1] - by TheYoungCapone - 07.02.2011, 20:26
Re: Scripter's Tools [ver 0.1] - by Ash. - 08.02.2011, 06:07
Re: Scripter's Tools [ver 0.1] - by Curti$ - 08.02.2011, 17:03
Re: Scripter's Tools [ver 0.1] - by Janek17 - 08.02.2011, 17:04
Re: Scripter's Tools [ver 0.1] - by Ash. - 08.02.2011, 18:34
Re: Scripter's Tools [ver 0.1] - by Hiddos - 08.02.2011, 18:42
Re: Scripter's Tools [ver 0.1] - by WillyP - 08.02.2011, 18:44
Re: Scripter's Tools [ver 0.1] - by Ash. - 08.02.2011, 18:45
Re: Scripter's Tools [ver 0.1] - by Ash. - 09.02.2011, 16:49
Re: Scripter's Tools [ver 0.1] - by Mr.Black - 19.03.2011, 13:05
Re: Scripter's Tools [ver 0.1] - by X3nZ - 19.03.2011, 13:22
Re: Scripter's Tools [ver 0.1] - by [ProX]BlueFire - 19.03.2011, 15:22
Re: Scripter's Tools [ver 0.1] - by Mark_Shade - 19.03.2011, 15:41
Re: Scripter's Tools [ver 0.1] - by ricardo178 - 19.03.2011, 15:45
Re: Scripter's Tools [ver 0.1] - by [ProX]BlueFire - 19.03.2011, 15:46
Re: Scripter's Tools [ver 0.1] - by GAMER_PS2 - 11.12.2011, 03:24
Re: Scripter's Tools [ver 0.1] - by Ash. - 11.12.2011, 07:52
Re: Scripter's Tools [ver 0.1] - by NessaHD - 11.12.2011, 09:38
Re: Scripter's Tools [ver 0.1] - by Ash. - 11.12.2011, 10:50

Forum Jump:


Users browsing this thread: 2 Guest(s)