SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/01/2013, 04:21 AM   #1
electrux
Big Clucker
 
electrux's Avatar
 
Join Date: May 2012
Posts: 109
Reputation: 6
Default GPS System (kind of)

GPS SYSTEM

Hey all!!
I present you with my GPS System.
Well its not exactly GPS system as it doesnt give directions, but it can be used in RolePlay servers.
It has a dynamic dialog box which adds the locations as you make them. Each player has his own folder (Thanks to DFile include).

With this system you can add location (to your GPS) and then use them using the dialog.

COMMANDS:

Only 2 commands are currently available.

1. /newgpspos [NAME]
With this, you can add new gps positions to be added in dialog. The 'NAME' parameter specifies the name you want to use for it.

2. /gps
With this command, it shows the dialog of GPS. You can dynamically select the positions by the 'NAME' you entered with /newgpspos.

This system is good for RolePlay servers.
If you want, you can also use this for FreeRoam or stunt servers by directly teleporting. And the best part, the positions will never get lost as they are saved.

SCREENS:

1. When you type /newgpspos [NAME] (here test1 is 'NAME').


2. When you press enter.


3. When you type /gps.


4. Dialog box of GPS.


5. Checkpoint made with X,Y,Z coordinates on chat.


INCLUDES:
1. Dfile
2. ZCMD
3. DINI
4. SSCANF2

CREDITS:
Developers of samp for this awesome multiplayer system.
All the designers of the includes used.
Me for designing this script


DOWNLOAD:

Pastebin

Please dont be rude. If any bugs or problems, tell here .
electrux is offline   Reply With Quote
Old 05/01/2013, 04:58 AM   #2
Vlad_Dredd
Big Clucker
 
Join Date: Jul 2011
Location: Russia. Novosibirsk
Posts: 81
Reputation: 0
Question Re: GPS System (kind of)

HELP!
HTML Code:
 85: if(!dfile_DirectoryExists(folder))
         86: {
         87: dfile_CreateDirectory(folder);
              }
Errors:
HTML Code:
(85) : error 017: undefined symbol "dir_exists"
(87) : error 017: undefined symbol "dfile_CreateDirectory"
Vlad_Dredd is offline   Reply With Quote
Old 05/01/2013, 05:17 AM   #3
electrux
Big Clucker
 
electrux's Avatar
 
Join Date: May 2012
Posts: 109
Reputation: 6
Default Re: GPS System (kind of)

At the top of the dfile include file, type #define USE_PLUGIN_FUNCTIONS

OR

in the dfile include, find stock dir_exists .
Just above it, you will find #if defined blablabla.
Copy the part of same line after if defined, and at the top of include, write #define <the copied part>
. Dont use the <> brackets.

Then after following any of the above, go to server.cfg and add FileManager in plugins part. Like this:
Code:
plugins sscanf FileManager
That should do it.
electrux is offline   Reply With Quote
Old 05/01/2013, 05:29 AM   #4
Vlad_Dredd
Big Clucker
 
Join Date: Jul 2011
Location: Russia. Novosibirsk
Posts: 81
Reputation: 0
Default Re: GPS System (kind of)

Thanks! Good Job!
Vlad_Dredd is offline   Reply With Quote
Old 05/01/2013, 05:40 AM   #5
electrux
Big Clucker
 
electrux's Avatar
 
Join Date: May 2012
Posts: 109
Reputation: 6
Default Re: GPS System (kind of)

Quote:
Originally Posted by Vlad_Dredd View Post
Thanks! Good Job!
Thanks!
electrux is offline   Reply With Quote
Old 05/01/2013, 05:51 AM   #6
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,841
Reputation: 660
Default Re: GPS System (kind of)

Simply.


You use
Code:
#include <a_samp>
#include <sscanf2>
#include <dini>
#include <zcmd>
#include <dfile>

for make this ?
zSuYaNw is offline   Reply With Quote
Old 05/01/2013, 05:55 AM   #7
electrux
Big Clucker
 
electrux's Avatar
 
Join Date: May 2012
Posts: 109
Reputation: 6
Default Re: GPS System (kind of)

means??
Well btw i used DFile just for directory stuff. Dini for reading and writing files.
electrux is offline   Reply With Quote
Old 05/01/2013, 07:48 AM   #8
RedCrossER
Huge Clucker
 
Join Date: Nov 2012
Posts: 277
Reputation: 8
Default Re: GPS System (kind of)

Good job but try to make a unique one.
RedCrossER is offline   Reply With Quote
Old 05/01/2013, 08:04 AM   #9
Pro4hock
Little Clucker
 
Pro4hock's Avatar
 
Join Date: Jan 2013
Location: Finland
Posts: 19
Reputation: 18
Default Re: GPS System (kind of)

looks nice!
Pro4hock is offline   Reply With Quote
Old 05/01/2013, 09:03 AM   #10
electrux
Big Clucker
 
electrux's Avatar
 
Join Date: May 2012
Posts: 109
Reputation: 6
Default Re: GPS System (kind of)

Thanks all .
electrux 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
[Map] Willing to map any kind of map for 2$. ValentinLaw Maps 1 14/08/2012 11:43 PM
Some kind of bug or something ? xemper Server Support 0 18/01/2011 04:06 PM
What kind of a VPS? Packadore Everything and Nothing 5 05/07/2010 11:29 PM


All times are GMT. The time now is 07:48 PM.


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