[FilterScript] GPS system by Tika Spic (dock)
#1

ex_GPS v0.1


Ok so this is my first release on the official samp forum, and it's not much but i believe it can be helpfull

Credits:

ZeeX - zcmd
Bloodmaster - his fs inspired me to create this

The system is basicly made so you can add GPS locations very easy. There is one stock for this and it is

Код:
AddGPS(the name of the location, x, y, z);
You can change the max amount of GPS locations by changing the MAX_GPS define...

you add this in OnFilterScript init.

You have 2 commands:

/gps - opens the dialog with the locations
/gpsoff - disables the GPS

The system is pretty simple but i believe that a lot of people will find it helpfull

http://pastebin.com/65nXnsjg

Just to make it clear, I am dock becouse that is what it says in the FS and i don't want to make any confusion

Here are some screens

Before you get into a car
http://i.imgur.com/Sq9sp.jpg

When you type in the command /gps
http://i.imgur.com/DPUT0.jpg

When you pick a location (displayed on the minimap)
http://i.imgur.com/XAhnh.jpg

When you type the /gpsoff command
http://i.imgur.com/XLrJF.jpg

How the final destenation looks like (the checkpoint)
http://i.imgur.com/Yj88P.jpg

And finally when you go through the checkpoint
http://i.imgur.com/mFiqK.jpg
Reply
#2

Screens?
Reply
#3

BUMP here are the pics
Reply
#4

i need add cmd For Gamemode pls anyhelp

Reply
#5

Thx, Sounds nice. Good
Reply
#6

pawn Код:
dcmd_gps(playerid,params[])
{
        #pragma unused params
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "[GPS]:You must be in a vehicle to use this command.");
        if(IsPlayerInAnyVehicle(playerid))
        {
          SendClientMessage(playerid, COLOR_GREEN,"[GPS]:You have turned on your GPS.");
          ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "GPS:", gpsstr, "Choose", "Cancel");
        }
        return 1;
}
No compiling error, but Dialog doesn't seem to be working.

EDIT: You also forgot to add
pawn Код:
GPS_Activated[playerid] = 1;
under GPS Command.
and ResetVariable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)