SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/02/2011, 05:28 PM   #1
Fj0rtizFredde
Gangsta
 
Fj0rtizFredde's Avatar
 
Join Date: Jun 2008
Location: Sweden
Posts: 888
Reputation: 120
Default FGPS - Advanced GPS System

Quote:
Originally Posted by Fj0rtizFredde View Post
Hey guys. I'm currently quite inactive here so thats why I haven't responded to your messages. If I ever get more active again I will make a new better version with less bugs and more functions but for now use something else. There is a lot more GPS systems that is way better than this.
Hi all
Here is my new GPS system. It has one of those arrows at the top of the vehicle. It uses a dynamic dialog and it save's everything with SQLite.

Note: This is my first time using SQLite so please the code might look bad at some places but I will work on it

Features:
* Arrow on top of your vehicle that shows will show you where to drive.
* Dynamic list. If there is no data in the database you will not see the dialog.
* You can create places in game but you cant delete them beacuse everything is based on ID's so in that case if you delete number 2 then number 3 should be 2 and 4 be 3 etc.. So I just put a simple software that you can use to change the ID's and delete locations (It must go from 0-MAX_LOCATIONS)
* You can edit names ingame with /Fedit. The old and the new name are separated by a , and no space! Example: /fedit My Old Name,New Name Goes Here!
* Plug & Play. Just put the FGPS in your filterscripts folder and add it to your server.cfg and you are done. If it is the first time you use the filterscript your server needs to restart. (Thats only to make sure everything loads to 100%)
* Textdraw that shows the distance left to your destination. You can disable this in the script

The commands:
To show the gps just type /gps
To turn it off just type /turnoff
To add a location to the database: Login as RCON admin and type /fsave NAME OF PLACE
To edit a location: Login as RCON admin and type /Fedit [OldName] [NewName] (old name = the place you want to edit and new name = the new name of the place

Config:
pawn Code:
#define GPSFile ("Positions.db") //The file where everything should be saved!
#define MAX_LOCATIONS 50 //How many locations you want to have!
#define UseTd //Comment This if you dont want to use the TextDraw! (To comment put // at the begining of this line)
#define GPSDialogID 1111 //The DialogID of the GPS!
Screens:

Add a place:


Now look at the dialog:


Lets add some more:


And now we look at the gps agian:


The car with arrow:


Distance Meter:


Download:
http://www.speedyshare.com/files/27452646/FGPS.rar (New!)

http://trueserve.info/dl/FGPS.rar Mirror by TruServe <3 (Old!)

Credits:
Fj0rtizFredde = Creator of this script!
Whoever made the GetDistanceBetweenPoints, PointAngle & Split function!
Sacky = Fcreate function
DracoBlue = Dcmd
Ryan = Help me to test this script
If I forgot anyone please tell me

Changelog:
Code:
Version 1.5:
Removed the sscanf code!
Fixed the /fedit code (Read the features list to see how it works!)
Fixed a bug when you had a lot of locations!
Made some small changes in the script!

Version 1.1:
Made some small changes in the code
Added /Fedit [OldName] [NewName] so you can edit the names ingame

Version 1.0:
Release of the script
PS! If you have any suggestions please post them here or PM them to me
__________________
Latest crap I've made:
[Include]CleverBot - Never Be Alone Again!

Last edited by Fj0rtizFredde; 14/02/2017 at 07:41 AM.
Fj0rtizFredde is offline   Reply With Quote
Old 01/02/2011, 05:30 PM   #2
Venice
Banned
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 914
Reputation: 50
Default Re: FGPS - Advanced GPS System

LV or LS or SF ?
Venice is offline   Reply With Quote
Old 01/02/2011, 05:31 PM   #3
Fj0rtizFredde
Gangsta
 
Fj0rtizFredde's Avatar
 
Join Date: Jun 2008
Location: Sweden
Posts: 888
Reputation: 120
Default Re: FGPS - Advanced GPS System

Quote:
Originally Posted by venice View Post
LV or LS or SF ?
Anywhere you want You create the places in game
__________________
Latest crap I've made:
[Include]CleverBot - Never Be Alone Again!
Fj0rtizFredde is offline   Reply With Quote
Old 01/02/2011, 05:32 PM   #4
Venice
Banned
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 914
Reputation: 50
Default Re: FGPS - Advanced GPS System

Wow Awesome Good For Rp Server
Venice is offline   Reply With Quote
Old 01/02/2011, 05:32 PM   #5
xRyder
Huge Clucker
 
xRyder's Avatar
 
Join Date: Jan 2011
Location: Right above you.
Posts: 371
Reputation: 0
Default Re: FGPS - Advanced GPS System

This looks really, really good. Nice work man!
xRyder is offline   Reply With Quote
Old 01/02/2011, 05:38 PM   #6
TruServe
Big Clucker
 
TruServe's Avatar
 
Join Date: May 2010
Location: London, United Kingdom
Posts: 86
Reputation: 0
Default Re: FGPS - Advanced GPS System

Wow, very nice. Going to have to play with this. Do you want a mirror?
TruServe is offline   Reply With Quote
Old 01/02/2011, 05:39 PM   #7
Fj0rtizFredde
Gangsta
 
Fj0rtizFredde's Avatar
 
Join Date: Jun 2008
Location: Sweden
Posts: 888
Reputation: 120
Default Re: FGPS - Advanced GPS System

Quote:
Originally Posted by TruServe View Post
Wow, very nice. Going to have to play with this. Do you want a mirror?
Yeah sure
__________________
Latest crap I've made:
[Include]CleverBot - Never Be Alone Again!
Fj0rtizFredde is offline   Reply With Quote
Old 01/02/2011, 05:41 PM   #8
TruServe
Big Clucker
 
TruServe's Avatar
 
Join Date: May 2010
Location: London, United Kingdom
Posts: 86
Reputation: 0
Default Re: FGPS - Advanced GPS System

Quote:
Originally Posted by Fj0rtizFredde View Post
Yeah sure
Here you go: Mirror (http://trueserve.info/dl/FGPS.rar).
Nice work once again
TruServe is offline   Reply With Quote
Old 01/02/2011, 05:46 PM   #9
Venice
Banned
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 914
Reputation: 50
Default Re: FGPS - Advanced GPS System

There Is No Location In Database!
im get this message
Venice is offline   Reply With Quote
Old 01/02/2011, 05:46 PM   #10
Fj0rtizFredde
Gangsta
 
Fj0rtizFredde's Avatar
 
Join Date: Jun 2008
Location: Sweden
Posts: 888
Reputation: 120
Default Re: FGPS - Advanced GPS System

Quote:
Originally Posted by venice View Post
There Is No Location In Database!
im get this message
Add one then Login as RCON admin and type /fsave NAME
__________________
Latest crap I've made:
[Include]CleverBot - Never Be Alone Again!
Fj0rtizFredde 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
[Advanced] Clan System Gummy Bear Scripting Help 19 14/04/2013 01:19 PM
[FilterScript] [FS] X-VIP [Advanced VIP system] hemen Filterscripts 17 12/10/2011 11:51 AM
[Tutorial] Advanced registration system me-borno Tutorials 5 22/01/2011 09:42 PM
[FilterScript] [FS]Advanced AFK System Razvann Filterscripts 6 15/02/2010 06:23 AM
Advanced AFK System Mikep Filterscripts 47 21/10/2009 11:58 AM


All times are GMT. The time now is 03:39 AM.


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