SA-MP Forums Archive
[Include] Timed Teleport - Stop the teleporting death avoiders - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Timed Teleport - Stop the teleporting death avoiders (/showthread.php?tid=358862)



Timed Teleport - Stop the teleporting death avoiders - sleepysnowflake - 11.07.2012

Timed Teleport
This is a very simple include, that has no more than 60 lines of code. It is really simple to use and work with. It's meant for DM/Fun servers where there are lots of people who evade death by teleporting.

Changelog

Код:
v1.0
- Inital release
How does it work?

If you use TimedTeleport the player will be teleported after a certain amount of time (that you can define for each case in particular) only if he does not take any damage.

Functions

The only function is:
pawn Код:
stock TimedTeleport(playerid, Float:X, Float:Y, Float:Z, time)
playerid - The ID of the player that will be teleported
Float: X - The X coordinate to teleport the player at
Float: Z - The Z coordinate to teleport the player at
Float: Y - The Y coordinate to teleport the player at
time - Time player has to wait until he will be teleported

Installation

Simply put the ttp.inc the the pawno\include folder and in your gamemode add

pawn Код:
#include <ttp>
Make sure to put it under

pawn Код:
#include <a_samp>
Downloads

Solidfiles
Pastebin

Credits

Credits to Berlovan (me) for making the include
Credits to Yoshifirebird for helping with testing because my PC died and I am currently on my mom's which cannot stand GTA:SA or any other game.

Feel free to use it as you wish.


Re: Timed Teleport - Stop the teleporting death avoiders - vyper - 12.07.2012

Ehm..

It's good I guess lol


Re: Timed Teleport - Stop the teleporting death avoiders - Niko_boy - 12.07.2012

gg ^^
many of ppl i see around , are complaining that some player lame by teleporting at some location though most of server creates an anti-shit about it ..
Still this is good for ppl who haven't made , used / thought of making such anti lame thing


Re: Timed Teleport - Stop the teleporting death avoiders - $mooth - 12.07.2012

good one.


Re: Timed Teleport - Stop the teleporting death avoiders - sleepysnowflake - 12.07.2012

It is rather simple but I haven't seen this on any server so I thought made it. Even tho it sucks.


Re: Timed Teleport - Stop the teleporting death avoiders - Lorenc_ - 15.07.2012

It will not work if you have more than 10 players on your server...

pTeleporting must be indexed: pTeleporting[ playerid ] = true;
You should make it a char array anyway.

Same thing with the timers assigned with variables, index those though don't use a char array.


Re: Timed Teleport - Stop the teleporting death avoiders - sleepysnowflake - 15.07.2012

Well you are right. What was I thinking of ... Scripting after midnight. You know how many errors I had on this one? Like 20. Separate ones. I fix one, the other one pops up. And guess what. They were all stupid retarded errors. Like the ones you get when you don't pay attention. Failed to add ';' or '==' and such stuff. Thanks for telling me, it will be fixed in no time.


Re: Timed Teleport - Stop the teleporting death avoiders - Lorenzo* - 15.07.2012

this is useful, nice


Re: Timed Teleport - Stop the teleporting death avoiders - Lordzy - 15.07.2012

Good JoB.