Így néz ki egy teleport..
[pawn]COMMAND:jump1(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2836.2173,1368.1786,102.8800);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2836.2173,1368.1786,102.8800);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"Elteleportáltál jumpolni.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) elment jumpolni. (/jump1)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}[/pawn]