17.03.2010, 16:58
Teleport Manager
DescriptionThis is simple teleport manager, version 0.9
Developing:
Code:
- New command system - Admin system
To use it add:
pawn Code:
#include <teleport.h>
Code:
Teleport_New("Farm","/farm",-1049.7108,-1307.3292,128.2483,1.0493);
Code:
Teleport_LoadFormFile("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


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

native Teleport_GetPos(teleportid,&Float

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