[Include] [INC] Teleport | 1 line | File & 3D support | 40+ functions | Update: 2010.03.17
#1

Teleport Manager
Description
This is simple teleport manager, version 0.9

Developing:

Code:
- New command system
- Admin system
Use

To use it add:

pawn Code:
#include <teleport.h>
How to create teleport? Simple...

Code:
Teleport_New("Farm","/farm",-1049.7108,-1307.3292,128.2483,1.0493);
or

Code:
Teleport_LoadFormFile("teleports.txt");
( to teleports.txt:
Code:
Farm|/farm|-1049.7108|-1307.3292|128.2483|1.0493|0|0|0|1|100|149|237|255|40.0|0|4|1|1|0|0|
)

Functions

Command: /teleports

Callbacks
forward OnPlayerTeleport(playerid,teleportid);
If player teleported

forward OnPlayerCallingTeleport(playerid,teleportid);
If player calling teleport, to fail use return 0/false

forward OnPlayerFailedTeleport(playerid,teleportid);
If teleporting failed

forward OnPlayerStartingObjectLoad(playerid);
Object load start

forward OnPlayerEndingObjectLoad(playerid);
Object load end

Create, Remove etc...
native Teleport_New(name[], cmd[], Float,Float:y,Float:z,Float:angle,interior=0,wor ldid=0,prize=0, bool:text3d = true,text3dcolor = TELEPORT_3D_DEFAULT_COLOR, Float:text3ddrawd = TELEPORT_3D_DEFAULT_DRAWD,boolbjectloader = false, objectltime = 2500, bool:foot = true, bool:vehicle = true,bool:drivermode = true, bool:adminonly = false);
native Teleport_Remove(teleportid);
native Teleport_CountAll();
native Teleport_LittleID();
native Teleport_HighestID();
native Teleport_IsActive( teleportid );
native Teleport_IsValid( teleportid );

3D Text
native Teleport_IsValid3Dtext(teleportid);
native Teleport_Toggle3Dtext(teleportid,toggle);
native Teleport_IsUsing3Dtext(teleportid);
native Teleport_SetText3Dcolor(teleportid, color);
native Teleport_GetText3Dcolor(teleportid);
native Teleport_Set3DtextDrawDistance(teleportid, Float:distance);
native Teleport_Get3DtextDeawDistance(teleportid, &Float:dis);

File
native Teleport_LoadFormFile(handle[]);
native Teleport_SaveToFile(...);
native Teleport_SaveToFileEx(teleportid,file[]);

Other
native Teleport_ToggleDriverMode(teleportid, toggle); (anti passenger's teleport in vehicle)
native Teleport_IsUsingDriverMode(teleportid);
native Teleport_ToggleAdminOnly( teleportid,toggle ); (for RCON admins)
native Teleport_IsAdminOnly( teleportid );
native Teleport_SetLoaderTime( teleportid,time_second );
native Teleport_GetLoaderTime( teleportid );
native Teleport_ToggleFoot( teleportid,toggle );
native Teleport_IsUsingFoot( teleportid );
native Teleport_ToggleVehicle( teleportid,toggle );
native Teleport_IsUsingVehicle( teleportid );
native Teleport_ToggleObjectLoader(teleportid,toggle);
native Teleport_IsUsingObjectLoader(teleportid);
native Teleport_SetPrize(teleportid,prize);
native Teleport_GetPrize(teleportid);
native Teleport_SetPos(teleportid,Float,Float:y,Float:z ,Float:angle);
native Teleport_GetPos(teleportid,&Float,&Float:y,&Floa t:z,&Float:angle);
native Teleport_SetInterior(teleportid,interiorid);
native Teleport_GetInterior(teleportid);
native Teleport_SetVirtualWorld(teleportid,worldid);
native Teleport_GetVirtualWorld(teleportid);
native Teleport_SetName(teleportid,name[]);
native Teleport_GetName(teleportid,name[],len);
native Teleport_SetCommand(teleportid,cmd[]);
native Teleport_GetCommand(teleportid,cmd[],len);
native Teleport_GetIDByCommand(command[]);

Download

English


Hungarian


Enjoy!

Sorry for my bad English...
Reply
#2

Wow, looks awesome!
Reply
#3

Insane
Reply
#4

lol, teleport.h? what is this c++?
Reply
#5

Thanks.

Quote:
Originally Posted by Kurence
lol, teleport.h? what is this c++?
No, simple include.

pawn Code:
#include <teleport.h>
Reply
#6

but all other includes are .inc... no, never mind :P
Reply
#7

Kurence: The callback-library (include) can be written in .h filetype
And, I'm write my inc's .h too
Gamestar, nice work anyway


sorry for my bad english
Reply
#8

Yes, thanks.
Reply
#9

But Seif is making it in .inc form too and my object editor is saving files in .kurence format
Reply
#10

omg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)