[Include] Timed Teleport - Stop the teleporting death avoiders
#1

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.
Reply
#2

Ehm..

It's good I guess lol
Reply
#3

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
Reply
#4

good one.
Reply
#5

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

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.
Reply
#7

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.
Reply
#8

this is useful, nice
Reply
#9

Good JoB.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)