Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] FGPS - Fj0rtizFredde

$
0
0
Hey guys, I am re - releasing an old filterscript about GPS. Well this is mainly educational purpose now since mostly people know scripting. Mostly.

The main purpose of releasing was really to make newbies understand some basics about GPS and stuff.

Why do this? You can just checkpoints or pickups for GPS

Well you can do whatever you want but reading this might enlighten you just like how it did with me.

The filterscript was created by Fj0rtizFredde and he had agreed for me to maintain the script and update it. It had been two years since this was made and I am happy to say that I learned things on this two year old script rather than those latter tutorials. So maybe you can learn something from here.

For now it will be released at it's early stage FGPS v1.0 since the changes are made needs testing and newbies can read this to do the arrow things that some are asking.

FEATURES:

*A GPS system using an arrow, used by some famous gamemodes out there.
*It is created with SQLITE so using it would be very very easy.
*The old GPS feature had a naming convention using splits and a comma, now it uses space and spaces between names can be made using '_' underscores
*The old GPS feature can't save new locations for your gps now you can move your old gps location anytime you want.
*The old GPS feature uses /fedit, /fsave now it uses /gpssave and /gpsrename to have some naming convention of it's own.
*The old GPS feature uses OnPlayerUpdate which might make problems on a longer run, moved to using y_timers on time. You can change the timer update to lower value for smoother arrow action but handle with care.


FUTURE PLANS:

*You can set specific GPS names
*You can set who can use the GPS by group convention(may go against your gamemode script)
*Deleting/Removing of GPS locations and sorting the remaining locations so that there will be no blank spaces. (Currently having spaces when deleting so command was removed.)


How To Use
1.)Compile using the latest includes.
2.)When you first start your server it will close don't. Worry it only means that the SQL had created the specified place to save your server. It is necessary to make sure that the data saving will not get corrupted.
3.)To create on your GPS locations you must first become a server admin or an RCON admin.
4.)/gpssave to create a location. It uses GetPlayerPos so please make sure to stand on where you want the GPS to be pointed at.
5.)/gpsrename to rename the name of the GPS
6.)If you want to delete a location Don't do it. Rename the GPS instead and relocate it so that there won't be any bugs.

If you have any problems with the naming conventions made into the script. (Hehe if you read the script you'll understand) It wasn't me, I'm innocent. It was already there and I didn't do anything on it.

Pictures will follow soon

This are the old links that Fj0rtizFredde had created
Old Repository by Fj0rtizFredde: https://github.com/Fj0rtizFredde/FGPS
Old Thread by Fj0rtizFredde: http://forum.sa-mp.com/showthread.php?p=1047959

CREDITS:
Fj0rtizFredde for creating this filterscript
Y_less for YSI includes
Slice for sqlite improved
Zeex for ZCMD - planned to use other CMD commands but ZCMD is much faster to update for now.
SA-MP development team for sa-mp
Sacky for fcreate function, credited by Fj0rtizFredde

link to the updated version:
https://github.com/alterego29/forks-...ee/FGPS-branch

If anyone wants to upload this on pastebin, you may do but please do pm me the link and I'll add it here.

P.S
updates might come longer than expected since I am also scripting my own gamemode, but I'll give time to it.

If I missed something please do tell me so that I can add it.

Any suggestions? Feel free to open an issue on github.

The pawno code has an M on it?
I don't know why I'm still new to github but found the platform to be so handy so that's why I'm using it.

links
SolidFiles V 1.0 - https://www.solidfiles.com/v/Dk84dzyvMPBym
SolidFiles V 1.1 - https://www.solidfiles.com/v/QkDpz3jxqGeXR

NOTE:
I'm so sorry if edits are to minimal and will surely have bugs since I am doing it along with my classes, currently my university is f upped right now with unclear class schedules since we have passed the should have been end of class on first week of February but because of natural circumstances it was moved. If there are bugs please feel free to tell me so I can update it. No point in letting people read and learn what the filterscript contains.

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>