[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)