SA-MP Forums Archive
[FilterScript] [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy (/showthread.php?tid=73339)

Pages: 1 2


[FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Weirdosport - 14.04.2009

Tele System by Thomas_Conroy

Description:

This script allows you to Create, use and share teleports with your friends on the server. Each teleport has its own unique file with a .tele extension that gets stored in your Scriptfiles folder. While on the server admins can use the commands listed below to create teleports for people and vehicles, just vehicles or just people.

Commands:

/telecmds - Displays a list of the commands shown below
/telemake <telename> <comment> - This command creates a teleport at your current position with the name and comment you supply
/telechange <telename> - This command allows you to add/change a player/vehicle teleport position
/telecomment <telename> <comment> - This allows you to change the comment you defined earlier
/teledelete <telename> - This allows you to delete a previously made teleport
/tele <telename> - This command teleports you to the saved co-ordinates
/telestats <telename> - Displays basic teleport statistics
/telereset <telename> - Resets the teleport stat counts.

Download:

Version 1: Pastebin



Version 2 : Pastebin



Change-Log:

Version 2:
Version 3 (proposed) I plan to add the following: Screenshots:

Usage:

You MUST download DracoBlue's DJson include, as without it you're in for some EPIC FAIL

It can be found Here, or Here. I cannot stress how much fail you will encounter if you do not download it >.>

Feel free to modify the .pwn as you wish (it is include in the ZIP). Please leave the credit in place, as I spent several hours creating this script. More information on using and recompiling is included in the ReadMe.

Thanks:

Thanks to [TF]DChidell for spotting the spelling mistakes
Thanks to Zoidberg, [TF]DChidell and Deixel for being test dummies
Thanks to those who created Sscanf and Dcmd, without which many scripts would not be possible
Thank you to those at sa-mp who made these scripts possible :P
Thank you to the sa-mp community who answered forum questions allowing me to benefit from their knowledge

Please enjoy using this script, and if you wish to praise/criticize me please post. I plan to update the script in the future, so if you have any ideas please post them.

Thank you, Thomas_Conroy
(For those that do not know me, Thomas_Conroy is my sa-mp name.)


Re: [FS] Teleport System - Create, Use, Share! by Thomas_Conroy - Weirdosport - 14.04.2009

Tutorial

Allowing Admins/Non Admins to mess with your teleports!

Depending on your situation, you may want Non-Admins to have teleport making powers, in which case the following tutorial will instruct you! Also, if you use a "foreign" admin script, like Ladmin, gadmin, xadmin.. the list goes on.. you may not want people using your RCON logon!

1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)

2.) Locate the stock at the top of the script, that by default looks like this: (It's in the Edit box)

pawn Код:
stock AdminCheck(playerid)
{
    if(IsPlayerAdmin(playerid)) return 1;
    return 0;
}
3.) To enable anyone to use the teleport commands, change it to:

pawn Код:
stock AdminCheck(playerid)
{
    #pragma unused playerid
    return 1;
}
4.) To allow "foreign" admin script admins to use the the admin script commands, you will have to locate the IsPlayerAdmin command specific to that script. In the case of LAdmin, it would look something like:

pawn Код:
#include <IsPlayerLAdmin>
pawn Код:
stock AdminCheck(playerid)
{
    if(IsPlayerLAdmin(playerid) || IsPlayerAdmin(playerid)) return 1;
    return 0;
}

_________________________________________________

Changing Message Colour

This is fairly elementary, but i'm sure somebody will be wondering..

1.) Load the telesystem.pwn in a PAWN editing client (I use PAWNO)

2.) Locate the following line:

pawn Код:
#define COMMAND_COLOUR 0xFF00FFFF
3.) Change 0xFF00FFFF to suit your needs. If you're not sure about this, try a colour picking client like the one HERE


Re: [FS] Teleport System - Create, Use, Share! by Thomas_Conroy - ultras - 15.04.2009

This is fu... nice... i gonna use this!


Re: [FS] Teleport System - Create, Use, Share! by Thomas_Conroy - Weirdosport - 15.04.2009

Quote:
Originally Posted by ultras
This is fu... nice... i gonna use this!
Thanks, enjoy it.. The new version isn't far off >.>


Re: [FS] Teleport System - Create, Use, Share! by Thomas_Conroy - [IB]Scorcher - 16.04.2009

Seems cool, I'm going to try it


Re: [FS] Teleport System - Create, Use, Share! by Thomas_Conroy - Weirdosport - 19.04.2009

Quote:
Originally Posted by Scorcher
Seems cool, I'm going to try it
Thank you.

_________________________________________________

Version 2 Uploaded
Change-Log:

Version 2:


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - miokie - 20.04.2009

Looks pretty cool for new people to make teleports, good job!


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - MenaceX^ - 20.04.2009

Brilliant idea!
Nice job you've done here


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Weirdosport - 21.04.2009

Quote:
Originally Posted by CSS''Miokie*
Looks pretty cool for new people to make teleports, good job!
Quote:
Originally Posted by MenaceX^
Brilliant idea!
Nice job you've done here
Thanks, and thanks again, about to add the future changes for Version 3 in the main post, so if you see this, look there!


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Youtube - 29.11.2009

Great script,thanks dude!


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - willsuckformoney - 09.03.2010

Really works, thx alot man


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - [Ha]Lommo - 13.04.2010

Sometimes they dont work for a couple of minutes, it says invalite teleport but 2mins later the teles working again


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - ViruZZzZ_ChiLLL - 13.04.2010

Yeah, nice work ^^
________
HONDA CR-X DEL SOL SPECIFICATIONS


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Stunt-Andreas - 24.04.2010

I have now SOS.TELE, I open it with Editor WTF? this in the Script o.O?

{"carnum":0,"comment":"/sos","pedang":267.322509,"pedint":0,"pednum":0,"pe dx":231.837768,"pedy":-1471.876586,"pedz":4526.808593}


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - IanDaCJ - 01.05.2010

i got a bug.. when i create a tele it works for liek 10 times then it says invalid tele.. -.-'


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - [MWR]Blood - 01.05.2010

Nice


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - Weirdosport - 02.05.2010

Quote:
Originally Posted by [Ha
Lommo ]
Sometimes they dont work for a couple of minutes, it says invalite teleport but 2mins later the teles working again
Quote:
Originally Posted by IanDaCJ
i got a bug.. when i create a tele it works for liek 10 times then it says invalid tele.. -.-'
I get this too =/ I tried to fix it when I released but it happened very inconsistently.. I probably wont be fixing this, sorry.


Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - IanDaCJ - 08.05.2010

at least scriping the tele in gm is easy so i dont need any tele generstors :P



Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - VioletRain - 10.05.2010

i can do the teleport without the "/tele" ? like that:

"/tele make lalik
/lalik"




Re: [FS] Teleport System - [VERSION 2] Create, Use, Share! by Thomas_Conroy - IanDaCJ - 12.05.2010

Quote:
Originally Posted by VioletRain
i can do the teleport without the "/tele" ? like that:

"/tele make lalik
/lalik"

yes but not with this FS ....