GPS system by Tika Spic (dock) -
Tika Spic - 25.08.2012
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
Re: GPS system by Tika Spic (dock) -
Deron_Green - 26.08.2012
Screens?
Re: GPS system by Tika Spic (dock) -
Tika Spic - 26.08.2012
BUMP here are the pics
Re: GPS system by Tika Spic (dock) -
karim29 - 26.08.2012
i need add cmd For Gamemode pls anyhelp
Re: GPS system by Tika Spic (dock) -
DeadLy™ - 26.08.2012
Thx, Sounds nice. Good
Re: GPS system by Tika Spic (dock) -
Kh4led - 26.08.2012
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.